#include <OSGBaseTypeTraits.h>

Public Types | |
| typedef Real32 | RealReturnType |
Static Public Member Functions | |
| static UInt64 | getZeroElement (void) |
| static UInt64 | getOneElement (void) |
| static UInt64 | getMax (void) |
| static UInt64 | getMin (void) |
| static Real32 | getFraction (UInt64 val) |
| static UInt64 | getPortion (Real32 val) |
| static UInt64 | getFromString (const Char8 *szString) |
| static std::string | putToString (const UInt64 val) |
Static Public Attributes | |
| static const bool | IsPOD = true |
| static const MathTypeProperties | MathProp = IntValue |
| static const UInt64 | BitsSet = 0xFFFFFFFFFFFFFFFFLL |
| static const UInt64 | BitsClear = 0x0000000000000000LL |
| static const UInt64 | Zero = 0x0000000000000000LL |
| static const UInt64 | One = 0x0000000000000001LL |
Definition at line 593 of file OSGBaseTypeTraits.h.
| typedef Real32 osg::osg::TypeTraits< UInt64 >::RealReturnType |
Definition at line 595 of file OSGBaseTypeTraits.h.
| static UInt64 osg::osg::TypeTraits< UInt64 >::getFromString | ( | const Char8 * | szString | ) | [inline, static] |
Definition at line 650 of file OSGBaseTypeTraits.h.
00651 { 00652 if(szString != NULL) 00653 { 00654 #ifndef WIN32 00655 #ifdef __sgi 00656 // on my sgi machine strtoull is defined in the header 00657 // but not in the lib. amz 00658 UInt64 r = 0; 00659 sscanf(szString, "%llu", &r); 00660 return r; 00661 #else 00662 return UInt64(strtoull(szString, NULL, 0)); 00663 #endif 00664 #else 00665 return _atoi64(szString); 00666 #endif 00667 } 00668 else 00669 { 00670 return getZeroElement(); 00671 } 00672 }
| static std::string osg::osg::TypeTraits< UInt64 >::putToString | ( | const UInt64 | val | ) | [inline, static] |
Definition at line 674 of file OSGBaseTypeTraits.h.
00675 { 00676 Char8 buffer[25]; 00677 #ifdef __x86_64__ 00678 sprintf(buffer, "%lu", val); 00679 #else 00680 sprintf(buffer, "%llu", val); 00681 #endif 00682 return std::string(buffer); 00683 }
Definition at line 598 of file OSGBaseTypeTraits.h.
const MathTypeProperties osg::osg::TypeTraits< UInt64 >::MathProp = IntValue [static] |
Definition at line 599 of file OSGBaseTypeTraits.h.
Definition at line 602 of file OSGBaseTypeTraits.h.
Definition at line 603 of file OSGBaseTypeTraits.h.
Definition at line 605 of file OSGBaseTypeTraits.h.
Definition at line 606 of file OSGBaseTypeTraits.h.
1.5.5