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

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

#include <OSGBaseTypeTraits.h>

Inheritance diagram for osg::TypeTraits< Int64 >:

osg::TypeTraitsBase List of all members.

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

Detailed Description

template<>
struct osg::TypeTraits< Int64 >

Definition at line 681 of file OSGBaseTypeTraits.h.


Member Typedef Documentation

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

Definition at line 683 of file OSGBaseTypeTraits.h.


Member Function Documentation

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

Definition at line 698 of file OSGBaseTypeTraits.h.

00699     {
00700         return 0;
00701     }

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

Definition at line 703 of file OSGBaseTypeTraits.h.

00704     {
00705         return 1;
00706     }

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

Definition at line 708 of file OSGBaseTypeTraits.h.

00709     {
00710         return std::numeric_limits<Int64>::max();
00711     }

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

Definition at line 713 of file OSGBaseTypeTraits.h.

00714     {
00715         return std::numeric_limits<Int64>::min();
00716     }

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

Definition at line 719 of file OSGBaseTypeTraits.h.

00720     {
00721         return (Real32(val) / Real32(getMax()));
00722     };

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

Definition at line 724 of file OSGBaseTypeTraits.h.

00725     {
00726         return (Int64) (val * Real32(getMax()));
00727     };

static Int64 osg::TypeTraits< Int64 >::getFromString const Char8 szString  )  [inline, static]
 

Definition at line 730 of file OSGBaseTypeTraits.h.

00731     {
00732         if(szString != NULL)
00733         {
00734 #ifndef WIN32
00735             return  Int64(strtoll(szString, NULL, 0));
00736 #else
00737             return _atoi64(szString);
00738 #endif
00739         }
00740         else
00741         {
00742             return getZeroElement();
00743         }
00744     }

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

Definition at line 746 of file OSGBaseTypeTraits.h.

00747     {
00748         Char8 buffer[25];
00749 
00750         sprintf(buffer, "%lli", val);
00751 
00752         return std::string(buffer);
00753     }


Member Data Documentation

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

Definition at line 686 of file OSGBaseTypeTraits.h.

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

Definition at line 687 of file OSGBaseTypeTraits.h.

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

Definition at line 690 of file OSGBaseTypeTraits.h.

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

Definition at line 691 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