#include <vector_expr.h>
Public Types | |
enum | { array_size = ExprT::array_size } |
Record result size as an enum. More... | |
typedef cml::et::not_assignable_tag | assignable_tag |
typedef unary_expression | expr_ary |
typedef expr_type | expr_const_reference |
typedef expr_traits::const_reference | expr_reference |
typedef ExprTraits< ExprT > | expr_traits |
typedef UnaryVectorOp< ExprT, OpT > | expr_type |
typedef vector_result_tag | result_tag |
typedef expr_traits::result_type | result_type |
typedef ExprT::size_tag | size_tag |
typedef result_type::temporary_type | temporary_type |
typedef OpT::value_type | value_type |
Public Member Functions | |
expr_reference | expression () const |
Return reference to contained expression. | |
value_type | length () const |
Return the length. | |
value_type | length_squared () const |
Return square of the length. | |
result_type | normalize () const |
Return the result as a normalized vector. | |
value_type | operator[] (size_t i) const |
Compute value at index i of the result vector. | |
size_t | size () const |
Return size of this expression (same as argument's size). | |
UnaryVectorOp (const expr_type &e) | |
Copy constructor. | |
UnaryVectorOp (expr_reference expr) | |
Construct from the subexpression. | |
Protected Attributes | |
expr_reference | m_expr |
Private Member Functions | |
expr_type & | operator= (const expr_type &) |
The operator's operator() method must take exactly one argument.
Definition at line 153 of file vector_expr.h.
typedef cml::et::not_assignable_tag cml::et::UnaryVectorOp< ExprT, OpT >::assignable_tag |
Definition at line 179 of file vector_expr.h.
typedef unary_expression cml::et::UnaryVectorOp< ExprT, OpT >::expr_ary |
Definition at line 160 of file vector_expr.h.
typedef expr_type cml::et::UnaryVectorOp< ExprT, OpT >::expr_const_reference |
Definition at line 163 of file vector_expr.h.
typedef expr_traits::const_reference cml::et::UnaryVectorOp< ExprT, OpT >::expr_reference |
Definition at line 173 of file vector_expr.h.
typedef ExprTraits<ExprT> cml::et::UnaryVectorOp< ExprT, OpT >::expr_traits |
Definition at line 170 of file vector_expr.h.
typedef UnaryVectorOp<ExprT,OpT> cml::et::UnaryVectorOp< ExprT, OpT >::expr_type |
Definition at line 157 of file vector_expr.h.
typedef vector_result_tag cml::et::UnaryVectorOp< ExprT, OpT >::result_tag |
Definition at line 166 of file vector_expr.h.
typedef expr_traits::result_type cml::et::UnaryVectorOp< ExprT, OpT >::result_type |
Definition at line 176 of file vector_expr.h.
typedef ExprT::size_tag cml::et::UnaryVectorOp< ExprT, OpT >::size_tag |
Definition at line 167 of file vector_expr.h.
typedef result_type::temporary_type cml::et::UnaryVectorOp< ExprT, OpT >::temporary_type |
Definition at line 182 of file vector_expr.h.
typedef OpT::value_type cml::et::UnaryVectorOp< ExprT, OpT >::value_type |
Definition at line 165 of file vector_expr.h.
anonymous enum |
cml::et::UnaryVectorOp< ExprT, OpT >::UnaryVectorOp | ( | expr_reference | expr | ) | [inline, explicit] |
cml::et::UnaryVectorOp< ExprT, OpT >::UnaryVectorOp | ( | const expr_type & | e | ) | [inline] |
expr_reference cml::et::UnaryVectorOp< ExprT, OpT >::expression | ( | ) | const [inline] |
Return reference to contained expression.
Definition at line 229 of file vector_expr.h.
References cml::et::UnaryVectorOp< ExprT, OpT >::m_expr.
value_type cml::et::UnaryVectorOp< ExprT, OpT >::length | ( | ) | const [inline] |
Return the length.
Definition at line 201 of file vector_expr.h.
References cml::et::UnaryVectorOp< ExprT, OpT >::length_squared().
value_type cml::et::UnaryVectorOp< ExprT, OpT >::length_squared | ( | ) | const [inline] |
Return square of the length.
Definition at line 194 of file vector_expr.h.
References cml::dot().
Referenced by cml::et::UnaryVectorOp< ExprT, OpT >::length().
result_type cml::et::UnaryVectorOp< ExprT, OpT >::normalize | ( | ) | const [inline] |
expr_type& cml::et::UnaryVectorOp< ExprT, OpT >::operator= | ( | const expr_type & | ) | [private] |
value_type cml::et::UnaryVectorOp< ExprT, OpT >::operator[] | ( | size_t | i | ) | const [inline] |
Compute value at index i of the result vector.
Definition at line 212 of file vector_expr.h.
References cml::et::UnaryVectorOp< ExprT, OpT >::m_expr.
size_t cml::et::UnaryVectorOp< ExprT, OpT >::size | ( | ) | const [inline] |
Return size of this expression (same as argument's size).
Definition at line 224 of file vector_expr.h.
References cml::et::UnaryVectorOp< ExprT, OpT >::m_expr.
Referenced by cml::et::ExprTraits< UnaryVectorOp< ExprT, OpT > >::size().
expr_reference cml::et::UnaryVectorOp< ExprT, OpT >::m_expr [protected] |
Definition at line 243 of file vector_expr.h.
Referenced by cml::et::UnaryVectorOp< ExprT, OpT >::expression(), cml::et::UnaryVectorOp< ExprT, OpT >::operator[](), and cml::et::UnaryVectorOp< ExprT, OpT >::size().