Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
#include <tvmet/xpr/UnOperator.h>
Inheritance diagram for tvmet::XprUnOp< UnOp, E >:
Using the access operator() the unary operation will be evaluated.
Public Types | |
enum | { ops_expr = E::ops, ops = 1 * ops_expr } |
Complexity counter. More... | |
typedef UnOp::value_type | value_type |
Public Member Functions | |
XprUnOp (const E &e) | |
Constructor for an expressions. | |
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. | |
void | print_xpr (std::ostream &os, std::size_t l=0) const |
Private Member Functions | |
XprUnOp () | |
XprUnOp & | operator= (const XprUnOp &) |
Private Attributes | |
const E | m_expr |
typedef UnOp::value_type tvmet::XprUnOp< UnOp, E >::value_type |
tvmet::XprUnOp< UnOp, E >::XprUnOp | ( | ) | [private] |
tvmet::XprUnOp< UnOp, E >::XprUnOp | ( | const E & | e | ) | [inline, explicit] |
Constructor for an expressions.
XprUnOp& tvmet::XprUnOp< UnOp, E >::operator= | ( | const XprUnOp< UnOp, E > & | ) | [private] |
value_type tvmet::XprUnOp< UnOp, E >::operator() | ( | std::size_t | i | ) | const [inline] |
Index operator, evaluates the expression inside.
value_type tvmet::XprUnOp< UnOp, E >::operator() | ( | std::size_t | i, | |
std::size_t | j | |||
) | const [inline] |
index operator for arrays/matrices.
void tvmet::XprUnOp< UnOp, E >::print_xpr | ( | std::ostream & | os, | |
std::size_t | l = 0 | |||
) | const [inline] |
const E tvmet::XprUnOp< UnOp, E >::m_expr [private] |
Author: |