ICRS Eurobot 2013

Dependencies:   mbed mbed-rtos Servo QEI

Embed: (wiki syntax)

« Back to documentation index

XprUnOp< UnOp, E > Class Template Reference

XprUnOp< UnOp, E > Class Template Reference

Unary operator working on one subexpression. More...

#include <tvmet/xpr/UnOperator.h>

Inherits TvmetBase< XprUnOp< UnOp, E > >.

Public Types

enum  
 

Complexity counter.

More...

Public Member Functions

 XprUnOp (const E &e)
 Constructor for an expressions.
 XprUnOp (const XprUnOp &e)
 Copy Constructor.
value_type operator() (std::size_t i) const
 Index operator, evaluates the expression inside.
value_type operator() (std::size_t i, std::size_t j) const
 index operator for arrays/matrices.

Detailed Description

template<class UnOp, class E>
class tvmet::XprUnOp< UnOp, E >

Unary operator working on one subexpression.

Using the access operator() the unary operation will be evaluated.

Definition at line 37 of file UnOperator.h.


Member Enumeration Documentation

anonymous enum

Complexity counter.

Definition at line 48 of file UnOperator.h.


Constructor & Destructor Documentation

XprUnOp ( const E &  e ) [explicit]

Constructor for an expressions.

Definition at line 55 of file UnOperator.h.

XprUnOp ( const XprUnOp< UnOp, E > &  e )

Copy Constructor.

Not explicit!

Definition at line 61 of file UnOperator.h.


Member Function Documentation

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

Index operator, evaluates the expression inside.

Definition at line 67 of file UnOperator.h.

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

index operator for arrays/matrices.

Definition at line 72 of file UnOperator.h.