#include <OSGBaseTypeTraits.h>

Public Types | |
| typedef Real32 | RealReturnType |
Static Public Member Functions | |
| static UInt16 | getZeroElement (void) |
| static UInt16 | getOneElement (void) |
| static UInt16 | getMax (void) |
| static UInt16 | getMin (void) |
| static Real32 | getFraction (UInt16 val) |
| static UInt16 | getPortion (Real32 val) |
| static UInt16 | getFromString (const Char8 *szString) |
| static std::string | putToString (const UInt16 val) |
Static Public Attributes | |
| static const bool | IsPOD = true |
| static const MathTypeProperties | MathProp = IntValue |
| static const UInt16 | BitsSet = 0xFFFF |
| static const UInt16 | BitsClear = 0x0000 |
Definition at line 304 of file OSGBaseTypeTraits.h.
| typedef Real32 osg::osg::TypeTraits< UInt16 >::RealReturnType |
Definition at line 306 of file OSGBaseTypeTraits.h.
| static UInt16 osg::osg::TypeTraits< UInt16 >::getFromString | ( | const Char8 * | szString | ) | [inline, static] |
Definition at line 348 of file OSGBaseTypeTraits.h.
00349 { 00350 if(szString != NULL) 00351 { 00352 return UInt16(strtoul(szString, NULL, 0)); 00353 } 00354 else 00355 { 00356 return getZeroElement(); 00357 } 00358 }
| static std::string osg::osg::TypeTraits< UInt16 >::putToString | ( | const UInt16 | val | ) | [inline, static] |
Definition at line 360 of file OSGBaseTypeTraits.h.
00361 { 00362 Char8 buffer[10]; 00363 00364 // Check WIN32 Version 00365 #ifdef WIN32 00366 sprintf(buffer, "%u", UInt32(val)); 00367 #else 00368 sprintf(buffer, "%u", val); 00369 #endif 00370 00371 return std::string(buffer); 00372 }
Definition at line 309 of file OSGBaseTypeTraits.h.
const MathTypeProperties osg::osg::TypeTraits< UInt16 >::MathProp = IntValue [static] |
Definition at line 310 of file OSGBaseTypeTraits.h.
Definition at line 312 of file OSGBaseTypeTraits.h.
Definition at line 313 of file OSGBaseTypeTraits.h.
1.5.5