osg::TypeTraits< bool > Struct Template Reference

#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 void putToStream (const bool &val, OutStream &str)

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 147 of file OSGBaseTypeTraits.h.


Member Function Documentation

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

Definition at line 213 of file OSGBaseTypeTraits.h.

00214     {
00215         Char8 *pDataEnd;
00216 
00217         return getFromCString(pData, pDataEnd);
00218     }

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

Definition at line 176 of file OSGBaseTypeTraits.h.

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

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

Definition at line 166 of file OSGBaseTypeTraits.h.

00167     {
00168         return true;
00169     }

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

Definition at line 171 of file OSGBaseTypeTraits.h.

00172     {
00173         return false;
00174     }

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

Definition at line 161 of file OSGBaseTypeTraits.h.

00162     {
00163         return true;
00164     }

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

Definition at line 156 of file OSGBaseTypeTraits.h.

00157     {
00158         return false;
00159     }

static void osg::TypeTraitsTemplateBase< bool >::putToStream const bool &  val,
OutStream str
[inline, static, inherited]
 

Definition at line 107 of file OSGBaseTypeTraits.h.

00109     {
00110         str << val;
00111     }


Member Data Documentation

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

Definition at line 153 of file OSGBaseTypeTraits.h.

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

Definition at line 152 of file OSGBaseTypeTraits.h.

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

Definition at line 149 of file OSGBaseTypeTraits.h.

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

Definition at line 150 of file OSGBaseTypeTraits.h.


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