SourceForge Logo Tiny Vector Matrix library using Expression Templates Sourceforge Project Page

include/tvmet/TypePromotion.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tvmet

Classes

class  tvmet::PrecisionTraits< T >
 Declaring ranks of types to avoid specializing. More...
struct  tvmet::PrecisionTraits< int >
struct  tvmet::PrecisionTraits< unsigned int >
struct  tvmet::PrecisionTraits< long >
struct  tvmet::PrecisionTraits< unsigned long >
struct  tvmet::PrecisionTraits< float >
struct  tvmet::PrecisionTraits< double >
struct  tvmet::PrecisionTraits< long double >
struct  tvmet::PrecisionTraits< std::complex< int > >
struct  tvmet::PrecisionTraits< std::complex< unsigned int > >
struct  tvmet::PrecisionTraits< std::complex< long > >
struct  tvmet::PrecisionTraits< std::complex< unsigned long > >
struct  tvmet::PrecisionTraits< std::complex< float > >
struct  tvmet::PrecisionTraits< std::complex< double > >
struct  tvmet::PrecisionTraits< std::complex< long double > >
class  tvmet::AutopromoteTraits< T >
 The promoted types traits. More...
struct  tvmet::AutopromoteTraits< bool >
struct  tvmet::AutopromoteTraits< char >
struct  tvmet::AutopromoteTraits< unsigned char >
struct  tvmet::AutopromoteTraits< short int >
struct  tvmet::AutopromoteTraits< short unsigned int >
class  tvmet::promoteTo< T1, T2, promoteToT1 >
 Promote to T1. More...
struct  tvmet::promoteTo< T1, T2, 0 >
class  tvmet::PromoteTraits< T1org, T2org >
 Promote type traits. More...

Defines

#define TVMET_PRECISION(T, R)
#define TVMET_AUTOPROMOTE(T1, T2)


Define Documentation

#define TVMET_AUTOPROMOTE ( T1,
T2   ) 

Value:

template<>                                    \
struct AutopromoteTraits<T1> {              \
  typedef T2 value_type;                    \
};

#define TVMET_PRECISION ( T,
 ) 

Value:

template<>                                    \
struct PrecisionTraits< T > {                 \
  enum {                                    \
    rank = R,                             \
    known = 1                             \
  };                                        \
};


Author: