#include <OSGBaseTypeTraits.h>

Public Types | |
| typedef Real32 | RealReturnType |
Static Public Member Functions | |
| static Int64 | getZeroElement (void) |
| static Int64 | getOneElement (void) |
| static Int64 | getMax (void) |
| static Int64 | getMin (void) |
| static Real32 | getFraction (Int64 val) |
| static Int64 | getPortion (Real32 val) |
| static Int64 | getFromString (const Char8 *szString) |
| static std::string | putToString (const Int64 val) |
Static Public Attributes | |
| static const bool | IsPOD = true |
| static const MathTypeProperties | MathProp = IntValue |
| static const Int64 | BitsSet = 0xFFFFFFFFFFFFFFFFLL |
| static const Int64 | BitsClear = 0x0000000000000000LL |
Definition at line 691 of file OSGBaseTypeTraits.h.
| typedef Real32 osg::osg::TypeTraits< Int64 >::RealReturnType |
Definition at line 693 of file OSGBaseTypeTraits.h.
| static Int64 osg::osg::TypeTraits< Int64 >::getFromString | ( | const Char8 * | szString | ) | [inline, static] |
Definition at line 740 of file OSGBaseTypeTraits.h.
00741 { 00742 if(szString != NULL) 00743 { 00744 #ifndef WIN32 00745 #ifdef __sgi 00746 // on my sgi machine strtoll is defined in the header 00747 // but not in the lib. amz 00748 Int64 r = 0; 00749 sscanf(szString, "%lld", &r); 00750 return r; 00751 #else 00752 return Int64(strtoll(szString, NULL, 0)); 00753 #endif 00754 #else 00755 return _atoi64(szString); 00756 #endif 00757 } 00758 else 00759 { 00760 return getZeroElement(); 00761 } 00762 }
Definition at line 764 of file OSGBaseTypeTraits.h.
00765 { 00766 Char8 buffer[25]; 00767 00768 #ifdef __x86_64__ 00769 sprintf(buffer, "%li", val); 00770 #else 00771 sprintf(buffer, "%lli", val); 00772 #endif 00773 00774 return std::string(buffer); 00775 }
Definition at line 696 of file OSGBaseTypeTraits.h.
const MathTypeProperties osg::osg::TypeTraits< Int64 >::MathProp = IntValue [static] |
Definition at line 697 of file OSGBaseTypeTraits.h.
Definition at line 700 of file OSGBaseTypeTraits.h.
Definition at line 701 of file OSGBaseTypeTraits.h.
1.5.5