ICRS Eurobot 2013

Dependencies:   mbed mbed-rtos Servo QEI

Embed: (wiki syntax)

« Back to documentation index

XprMatrix< E, NRows, NCols > Class Template Reference

XprMatrix< E, NRows, NCols > Class Template Reference

Represents the expression for vectors at any node in the parse tree. More...

#include <tvmet/xpr/Matrix.h>

Inherits TvmetBase< XprMatrix< E, NRows, NCols > >.

Public Types

enum  { Rows = NRows, Cols = NCols, Size = Rows * Cols }
 

Dimensions.

More...
enum  
 

Complexity counter.

More...

Public Member Functions

 XprMatrix (const E &e)
 Constructor.
 XprMatrix (const XprMatrix &rhs)
 Copy Constructor.
value_type operator() (std::size_t i, std::size_t j) const
 access by index.
template<class Dest , class Assign >
void assign_to (Dest &dest, const Assign &assign_fn) const
 assign this expression to Matrix dest.

Detailed Description

template<class E, std::size_t NRows, std::size_t NCols>
class tvmet::XprMatrix< E, NRows, NCols >

Represents the expression for vectors at any node in the parse tree.

Specifically, XprMatrix is the class that wraps the expression, and the expression itself is represented by the template parameter E. The class XprMatrix is known as an anonymizing expression wrapper because it can hold any subexpression of arbitrary complexity, allowing clients to work with any expression by holding on to it via the wrapper, without having to know the name of the type object that actually implements the expression.

Note:
leave the CCtors non-explicit to allow implicit type conversation.

Definition at line 50 of file xpr/Matrix.h.


Member Enumeration Documentation

anonymous enum

Dimensions.

Enumerator:
Rows 

Number of rows.

Cols 

Number of cols.

Size 

Complete Size of Matrix.

Definition at line 58 of file xpr/Matrix.h.

anonymous enum

Complexity counter.

Definition at line 66 of file xpr/Matrix.h.


Constructor & Destructor Documentation

XprMatrix ( const E &  e ) [explicit]

Constructor.

Definition at line 77 of file xpr/Matrix.h.

XprMatrix ( const XprMatrix< E, NRows, NCols > &  rhs )

Copy Constructor.

Not explicit!

Definition at line 83 of file xpr/Matrix.h.


Member Function Documentation

void assign_to ( Dest &  dest,
const Assign &  assign_fn 
) const

assign this expression to Matrix dest.

Definition at line 112 of file xpr/Matrix.h.

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

access by index.

Definition at line 89 of file xpr/Matrix.h.