ARB
Classes | Macros | Functions
ttypes.h File Reference
#include <cstdlib>
Include dependency graph for ttypes.h:

Go to the source code of this file.

Classes

class  IsFundaT< T >
 
class  IsFunctionT< T >
 
struct  CompountT< T >
 
struct  CompountT< T * >
 
struct  CompountT< T & >
 
struct  CompountT< T[N]>
 
struct  CompountT< T[]>
 
struct  CompountT< T C::* >
 
struct  CompountT< R(P1)>
 
struct  CompountT< R(P1,...)>
 
struct  SizeOverOne
 
class  ConsumeUDC< T, convert_possible >
 
class  ConsumeUDC< T, false >
 
class  ConsumeUDC< void, convert_possible >
 
struct  IsEnumT< T >
 
struct  IsClassT< T >
 
struct  TypeT< T >
 
struct  TypeOp< T >
 
struct  TypeOp< T const >
 
struct  TypeOp< T & >
 
struct  TypeOp< void >
 
singleton  IfThenElseType< B, T, F >
 
class  IfThenElseType< true, T, F >
 
class  IfThenElseType< false, T, F >
 

Macros

#define NOisnotYES()   enum { No = !Yes }
 
#define DECL_FUNDA_TYPE(t)   template<> class IsFundaT<t> { public: enum { Yes = 1, No = 0 }; };
 
#define DECL_FUNDA_TYPE_SIGNED(t)   DECL_FUNDA_TYPE(signed t); DECL_FUNDA_TYPE(unsigned t)
 
#define NO_FUNCTION_TYPE(t)   class IsFunctionT<t> { public: enum { Yes = 0 }; NOisnotYES(); }
 
#define enum_check_SIGNED(t)   char enum_check(signed t); char enum_check(unsigned t)
 

Functions

 DECL_FUNDA_TYPE (bool)
 
 DECL_FUNDA_TYPE (char)
 
 DECL_FUNDA_TYPE_SIGNED (char)
 
 DECL_FUNDA_TYPE_SIGNED (int)
 
 DECL_FUNDA_TYPE_SIGNED (long)
 
 DECL_FUNDA_TYPE (float)
 
 DECL_FUNDA_TYPE (double)
 
 DECL_FUNDA_TYPE (long double)
 
template<typename T >
 NO_FUNCTION_TYPE (T &)
 
template<>
 NO_FUNCTION_TYPE (void)
 
char enum_check (bool)
 
 enum_check_SIGNED (char)
 
char enum_check (wchar_t)
 
 enum_check_SIGNED (short)
 
 enum_check_SIGNED (int)
 
 enum_check_SIGNED (long)
 
char enum_check (float)
 
char enum_check (double)
 
char enum_check (long double)
 
SizeOverOne enum_check (...)
 

Macro Definition Documentation

#define NOisnotYES ( )    enum { No = !Yes }

Definition at line 22 of file ttypes.h.

#define DECL_FUNDA_TYPE (   t)    template<> class IsFundaT<t> { public: enum { Yes = 1, No = 0 }; };

Definition at line 28 of file ttypes.h.

#define DECL_FUNDA_TYPE_SIGNED (   t)    DECL_FUNDA_TYPE(signed t); DECL_FUNDA_TYPE(unsigned t)

Definition at line 29 of file ttypes.h.

#define NO_FUNCTION_TYPE (   t)    class IsFunctionT<t> { public: enum { Yes = 0 }; NOisnotYES(); }

Definition at line 59 of file ttypes.h.

#define enum_check_SIGNED (   t)    char enum_check(signed t); char enum_check(unsigned t)

Definition at line 148 of file ttypes.h.

Function Documentation

DECL_FUNDA_TYPE ( bool  )
DECL_FUNDA_TYPE ( char  )
DECL_FUNDA_TYPE_SIGNED ( char  )
DECL_FUNDA_TYPE_SIGNED ( int  )
DECL_FUNDA_TYPE_SIGNED ( long  )
DECL_FUNDA_TYPE ( float  )
DECL_FUNDA_TYPE ( double  )
DECL_FUNDA_TYPE ( long  double)
template<typename T >
NO_FUNCTION_TYPE ( T )
template<>
NO_FUNCTION_TYPE ( void  )
char enum_check ( bool  )
enum_check_SIGNED ( char  )
char enum_check ( wchar_t  )
enum_check_SIGNED ( short  )
enum_check_SIGNED ( int  )
enum_check_SIGNED ( long  )
char enum_check ( float  )
char enum_check ( double  )
char enum_check ( long  double)
SizeOverOne enum_check (   ...)