cast< T_type > Struct Template Reference

List of all members.

Public Member Functions


Detailed Description

template<typename T_type>
struct cast< T_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 T_type>
template<typename T, int N>
ExprNode<ExprUnopNode<typename MArray<T,N>::ConstIterator, __ltl_cast<T_type,T>, N >, N> cast< T_type >::operator() ( const MArray< T, N > &  a  )  [inline]

Version that accepts MArrays.

template<typename T_type>
template<typename T, int N>
ExprNode<ExprUnopNode<ExprNode<T,N>, __ltl_cast<T_type,typename T::value_type>, N >, N > cast< T_type >::operator() ( const ExprNode< T, N > &  e  )  [inline]

Version that accepts expression types.


Generated on Wed Mar 11 17:44:35 2009 for LTL by  doxygen 1.5.3