ICRS Eurobot 2013

Dependencies:   mbed mbed-rtos Servo QEI

Embed: (wiki syntax)

« Back to documentation index

XprLiteral< T > Class Template Reference

XprLiteral< T > Class Template Reference

Specify literals like scalars into the expression. More...

#include <tvmet/xpr/Literal.h>

Inherits TvmetBase< XprLiteral< T > >.

Public Types

enum  
 

Complexity counter.

More...

Public Member Functions

 XprLiteral (value_type value)
 Constructor by value for literals .
 XprLiteral (const XprLiteral &e)
 Copy Constructor.
value_type operator() (std::size_t) const
 Index operator, gives the value for vectors.
value_type operator() (std::size_t, std::size_t) const
 Index operator for arrays/matrices.

Detailed Description

template<class T>
class tvmet::XprLiteral< T >

Specify literals like scalars into the expression.

This expression is used for vectors and matrices - the decision is done by the access operator.

Definition at line 37 of file Literal.h.


Member Enumeration Documentation

anonymous enum

Complexity counter.

Definition at line 48 of file Literal.h.


Constructor & Destructor Documentation

XprLiteral ( value_type  value ) [explicit]

Constructor by value for literals .

Definition at line 54 of file Literal.h.

XprLiteral ( const XprLiteral< T > &  e )

Copy Constructor.

Not explicit!

Definition at line 60 of file Literal.h.


Member Function Documentation

value_type operator() ( std::size_t   ) const

Index operator, gives the value for vectors.

Definition at line 66 of file Literal.h.

value_type operator() ( std::size_t  ,
std::size_t   
) const

Index operator for arrays/matrices.

Definition at line 69 of file Literal.h.