Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::TypeTraits< UInt64 > Struct Template Reference
[BaseTypesTraits]

#include <OSGBaseTypeTraits.h>

Inheritance diagram for osg::TypeTraits< UInt64 >:

osg::TypeTraitsBase List of all members.

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

Detailed Description

template<>
struct osg::TypeTraits< UInt64 >

Definition at line 593 of file OSGBaseTypeTraits.h.


Member Typedef Documentation

typedef Real32 osg::TypeTraits< UInt64 >::RealReturnType
 

Definition at line 595 of file OSGBaseTypeTraits.h.


Member Function Documentation

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

Definition at line 617 of file OSGBaseTypeTraits.h.

00618     {
00619         return 0;
00620     }

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

Definition at line 622 of file OSGBaseTypeTraits.h.

00623     {
00624         return 1;
00625     }

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

Definition at line 628 of file OSGBaseTypeTraits.h.

00629     {
00630         return std::numeric_limits<UInt64>::max();
00631     }

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

Definition at line 633 of file OSGBaseTypeTraits.h.

00634     {
00635         return std::numeric_limits<UInt64>::min();
00636     }

static Real32 osg::TypeTraits< UInt64 >::getFraction UInt64  val  )  [inline, static]
 

Definition at line 639 of file OSGBaseTypeTraits.h.

00640     {
00641         return (Real32(val) / Real32(getMax()));
00642     };

static UInt64 osg::TypeTraits< UInt64 >::getPortion Real32  val  )  [inline, static]
 

Definition at line 644 of file OSGBaseTypeTraits.h.

00645     {
00646         return (UInt64) (val * Real32(getMax()));
00647     };

static UInt64 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             return UInt64(strtoull(szString, NULL, 0));
00656 #else
00657             return _atoi64(szString);
00658 #endif
00659         }
00660         else
00661         {
00662             return getZeroElement();
00663         }
00664     }

static std::string osg::TypeTraits< UInt64 >::putToString const UInt64  val  )  [inline, static]
 

Definition at line 666 of file OSGBaseTypeTraits.h.

00667     {
00668         Char8 buffer[25];
00669 
00670         sprintf(buffer, "%llu", val);
00671 
00672         return std::string(buffer);
00673     }


Member Data Documentation

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

Definition at line 598 of file OSGBaseTypeTraits.h.

const MathTypeProperties osg::TypeTraits< UInt64 >::MathProp = IntValue [static]
 

Definition at line 599 of file OSGBaseTypeTraits.h.

const UInt64 osg::TypeTraits< UInt64 >::BitsSet = 0xFFFFFFFFFFFFFFFFLL [static]
 

Definition at line 602 of file OSGBaseTypeTraits.h.

const UInt64 osg::TypeTraits< UInt64 >::BitsClear = 0x0000000000000000LL [static]
 

Definition at line 603 of file OSGBaseTypeTraits.h.

const UInt64 osg::TypeTraits< UInt64 >::Zero = 0x0000000000000000LL [static]
 

Definition at line 605 of file OSGBaseTypeTraits.h.

const UInt64 osg::TypeTraits< UInt64 >::One = 0x0000000000000001LL [static]
 

Definition at line 606 of file OSGBaseTypeTraits.h.


The documentation for this struct was generated from the following file:
Generated on Thu Aug 25 04:12:32 2005 for OpenSG by  doxygen 1.4.3