ICRS Eurobot 2013

Dependencies:   mbed mbed-rtos Servo QEI

Embed: (wiki syntax)

« Back to documentation index

XprBinOp< BinOp, E1, E2 > Class Template Reference

XprBinOp< BinOp, E1, E2 > Class Template Reference

Binary operators working on two sub expressions. More...

#include <tvmet/xpr/BinOperator.h>

Inherits TvmetBase< XprBinOp< BinOp, E1, E2 > >.

Public Types

enum  
 

Complexity counter.

More...

Public Member Functions

 XprBinOp (const E1 &lhs, const E2 &rhs)
 Constructor for two expressions.
 XprBinOp (const XprBinOp &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 BinOp, class E1, class E2>
class tvmet::XprBinOp< BinOp, E1, E2 >

Binary operators working on two sub expressions.

On acessing using the index operator() the binary operation will be evaluated at compile time.

Definition at line 40 of file BinOperator.h.


Member Enumeration Documentation

anonymous enum

Complexity counter.

Definition at line 51 of file BinOperator.h.


Constructor & Destructor Documentation

XprBinOp ( const E1 &  lhs,
const E2 &  rhs 
) [explicit]

Constructor for two expressions.

Definition at line 59 of file BinOperator.h.

XprBinOp ( const XprBinOp< BinOp, E1, E2 > &  e )

Copy Constructor.

Not explicit!

Definition at line 65 of file BinOperator.h.


Member Function Documentation

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

Index operator, evaluates the expression inside.

Definition at line 71 of file BinOperator.h.

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

Index operator for arrays/matrices.

Definition at line 76 of file BinOperator.h.