ltl::cast< To_Type > Struct Template Reference

List of all members.

Public Member Functions


Detailed Description

template<typename To_Type>
struct ltl::cast< To_Type >

Type cast operation for MArray. Usage and semantics are (almost) as static_cast<T>() operation. For example, to use the elements of an

 MArray<float,2> A 

as ints, use

 cast<int>()( A ) 

. See the extra parenthesis to instantiate the cast instance?


Member Function Documentation

template<typename To_Type >
template<typename T1 , int N>
ExprNode<ExprUnopNode<typename ExprNodeType<T1>::expr_type, __ltl_cast<To_Type,typename T1::value_type>, N >, N> ltl::cast< To_Type >::operator() ( const ExprBase< T1, N > &  a  )  [inline]

cast<> operation for ExprBase arguments

References ltl::ExprBase< Derived_T, N_Dims >::derived().


Generated on 19 Feb 2015 for LTL by  doxygen 1.6.1