Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
#include <tvmet/AliasProxy.h>
Collaboration diagram for tvmet::AliasProxy< E >:
A short lived object to provide simplified alias syntax. Only the friend function alias is allowed to create such a object. The proxy calls the appropriate member alias_xyz() which have to use temporaries to avoid overlapping memory regions.
Some Notes ... about aliasing
Public Member Functions | |
AliasProxy (E &expr) | |
template<class E2> | |
E & | operator= (const E2 &expr) |
template<class E2> | |
E & | operator+= (const E2 &expr) |
template<class E2> | |
E & | operator-= (const E2 &expr) |
template<class E2> | |
E & | operator *= (const E2 &expr) |
template<class E2> | |
E & | operator/= (const E2 &expr) |
Private Member Functions | |
AliasProxy (const AliasProxy &) | |
AliasProxy & | operator= (const AliasProxy &) |
Private Attributes | |
E & | m_expr |
Friends | |
AliasProxy< E > | alias (E &expr) |
Simplify syntax for alias Matrices and Vectors, where aliasing left hand values appear in the expression. |
tvmet::AliasProxy< E >::AliasProxy | ( | const AliasProxy< E > & | ) | [private] |
tvmet::AliasProxy< E >::AliasProxy | ( | E & | expr | ) | [inline] |
AliasProxy& tvmet::AliasProxy< E >::operator= | ( | const AliasProxy< E > & | ) | [private] |
E& tvmet::AliasProxy< E >::operator= | ( | const E2 & | expr | ) | [inline] |
E& tvmet::AliasProxy< E >::operator+= | ( | const E2 & | expr | ) | [inline] |
E& tvmet::AliasProxy< E >::operator-= | ( | const E2 & | expr | ) | [inline] |
E& tvmet::AliasProxy< E >::operator *= | ( | const E2 & | expr | ) | [inline] |
E& tvmet::AliasProxy< E >::operator/= | ( | const E2 & | expr | ) | [inline] |
AliasProxy<E> alias | ( | E & | expr | ) | [friend] |
Simplify syntax for alias Matrices and Vectors, where aliasing left hand values appear in the expression.
typedef tvmet::Matrix<double, 10, 10> matrix_type; matrix_type m; ... alias(m) += trans(m);
Some Notes ... about aliasing
E& tvmet::AliasProxy< E >::m_expr [private] |
Author: |