|
|
Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
Unary operator working on one subexpression. More...
#include <tvmet/xpr/UnOperator.h>


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 |
| Copy Constructor. | |
| 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 |
Unary operator working on one subexpression.
Using the access operator() the unary operation will be evaluated.
| 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.
| value_type tvmet::XprUnOp< UnOp, E >::operator() | ( | std::size_t | i | ) | const [inline] |
Copy Constructor.
Not explicit! Index operator, evaluates the expression inside.
References tvmet::XprUnOp< UnOp, E >::m_expr.
| value_type tvmet::XprUnOp< UnOp, E >::operator() | ( | std::size_t | i, |
| std::size_t | j | ||
| ) | const [inline] |
index operator for arrays/matrices.
References tvmet::XprUnOp< UnOp, E >::m_expr.
| XprUnOp& tvmet::XprUnOp< UnOp, E >::operator= | ( | const XprUnOp< UnOp, E > & | ) | [private] |
| 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] |
Referenced by tvmet::XprUnOp< UnOp, E >::operator()(), and tvmet::XprUnOp< UnOp, E >::print_xpr().
|
Author: |