OSG::TypeTraits< bool > Struct Template Reference
[BaseTypesTraitslibOSGBase]

#include <OSGBaseTypeTraits.h>

Inheritance diagram for OSG::TypeTraits< bool >:
OSG::TypeTraitsTemplateBase< bool > OSG::TypeTraitsBase

List of all members.

Static Public Member Functions

static bool getZeroElement (void)
static bool getOneElement (void)
static bool getMax (void)
static bool getMin (void)
static bool getFromCString (const Char8 *pData, Char8 *&pDataEnd)
static bool getFromCString (const Char8 *pData)

Static Public Attributes

static const bool IsPOD = true
static const MathTypeProperties MathProp = BoolValue
static const bool BitsSet = true
static const bool BitsClear = false

Detailed Description

template<>
struct OSG::TypeTraits< bool >

Definition at line 154 of file OSGBaseTypeTraits.h.


Member Function Documentation

static bool OSG::TypeTraits< bool >::getZeroElement ( void   )  [inline, static]

Definition at line 163 of file OSGBaseTypeTraits.h.

00164     {
00165         return false;
00166     }

static bool OSG::TypeTraits< bool >::getOneElement ( void   )  [inline, static]

Definition at line 168 of file OSGBaseTypeTraits.h.

00169     {
00170         return true;
00171     }

static bool OSG::TypeTraits< bool >::getMax ( void   )  [inline, static]

Definition at line 173 of file OSGBaseTypeTraits.h.

00174     {
00175         return true;
00176     }

static bool OSG::TypeTraits< bool >::getMin ( void   )  [inline, static]

Definition at line 178 of file OSGBaseTypeTraits.h.

00179     {
00180         return false;
00181     }

static bool OSG::TypeTraits< bool >::getFromCString ( const Char8 *  pData,
Char8 *&  pDataEnd 
) [inline, static]

Definition at line 183 of file OSGBaseTypeTraits.h.

00185     {
00186         if(pData == NULL)
00187             return false;
00188
00189         if(pData[0] == 'T' || pData[0] == 't')
00190         {
00191             ++pDataEnd;
00192
00193             if(pData[1] != 'R' && pData[1] != 'r')
00194             {
00195                 return false;
00196             }
00197
00198             ++pDataEnd;
00199
00200             if(pData[2] != 'U' && pData[2] != 'u')
00201             {
00202                 return false;
00203             }
00204
00205             ++pDataEnd;
00206
00207             if(pData[3] != 'E' && pData[3] != 'e')
00208             {
00209                 return false;
00210             }
00211
00212             ++pDataEnd;
00213
00214             return true;
00215         }
00216
00217         return false;
00218     }

static bool OSG::TypeTraits< bool >::getFromCString ( const Char8 *  pData  )  [inline, static]

Definition at line 220 of file OSGBaseTypeTraits.h.

00221     {
00222         Char8 *pDataEnd;
00223
00224         return getFromCString(pData, pDataEnd);
00225     }


Member Data Documentation

const bool OSG::TypeTraits< bool >::IsPOD = true [static]

Definition at line 156 of file OSGBaseTypeTraits.h.

const MathTypeProperties OSG::TypeTraits< bool >::MathProp = BoolValue [static]

Definition at line 157 of file OSGBaseTypeTraits.h.

const bool OSG::TypeTraits< bool >::BitsSet = true [static]

Definition at line 159 of file OSGBaseTypeTraits.h.

const bool OSG::TypeTraits< bool >::BitsClear = false [static]

Definition at line 160 of file OSGBaseTypeTraits.h.


The documentation for this struct was generated from the following file: