Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
#include <tvmet/xpr/Literal.h>
Inheritance diagram for tvmet::XprLiteral< T >:
This expression is used for vectors and matrices - the decision is done by the access operator.
Public Types | |
enum | { ops = 1 } |
Complexity counter. More... | |
typedef T | value_type |
Public Member Functions | |
XprLiteral (value_type value) | |
Constructor by value for literals . | |
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. | |
void | print_xpr (std::ostream &os, std::size_t l=0) const |
Private Member Functions | |
XprLiteral () | |
XprLiteral & | operator= (const XprLiteral &) |
Private Attributes | |
const value_type | m_data |
typedef T tvmet::XprLiteral< T >::value_type |
tvmet::XprLiteral< T >::XprLiteral | ( | ) | [private] |
tvmet::XprLiteral< T >::XprLiteral | ( | value_type | value | ) | [inline, explicit] |
Constructor by value for literals .
XprLiteral& tvmet::XprLiteral< T >::operator= | ( | const XprLiteral< T > & | ) | [private] |
value_type tvmet::XprLiteral< T >::operator() | ( | std::size_t | ) | const [inline] |
Index operator, gives the value for vectors.
value_type tvmet::XprLiteral< T >::operator() | ( | std::size_t | , | |
std::size_t | ||||
) | const [inline] |
Index operator for arrays/matrices.
void tvmet::XprLiteral< T >::print_xpr | ( | std::ostream & | os, | |
std::size_t | l = 0 | |||
) | const [inline] |
const value_type tvmet::XprLiteral< T >::m_data [private] |
Author: |