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

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

#include <OSGBaseTypeTraits.h>

Inheritance diagram for osg::TypeTraits< Real64 >:

osg::TypeTraitsBase List of all members.

Public Types

typedef Real64 RealReturnType

Static Public Member Functions

static Real64 getZeroElement (void)
static Real64 getOneElement (void)
static Real64 getMax (void)
static Real64 getMin (void)
static Real64 getFraction (Real64 rVal)
static Real64 getPortion (Real64 rVal)
static Real64 getFromString (const Char8 *szString)
static std::string putToString (const Real64 val)

Static Public Attributes

static const bool IsPOD = true
static const MathTypeProperties MathProp = RealValue

Detailed Description

template<>
struct osg::TypeTraits< Real64 >

Definition at line 890 of file OSGBaseTypeTraits.h.


Member Typedef Documentation

typedef Real64 osg::TypeTraits< Real64 >::RealReturnType
 

Definition at line 892 of file OSGBaseTypeTraits.h.


Member Function Documentation

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

Definition at line 898 of file OSGBaseTypeTraits.h.

00899     {
00900         return 0.0;
00901     }

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

Definition at line 903 of file OSGBaseTypeTraits.h.

00904     {
00905         return 1.0;
00906     }

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

Definition at line 908 of file OSGBaseTypeTraits.h.

00909     {
00910         return DBL_MAX;
00911     }

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

Definition at line 913 of file OSGBaseTypeTraits.h.

00914     {
00915         return DBL_MIN;
00916     }

static Real64 osg::TypeTraits< Real64 >::getFraction Real64  rVal  )  [inline, static]
 

Definition at line 919 of file OSGBaseTypeTraits.h.

00919 { return rVal; };

static Real64 osg::TypeTraits< Real64 >::getPortion Real64  rVal  )  [inline, static]
 

Definition at line 920 of file OSGBaseTypeTraits.h.

00920 { return rVal; };

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

Definition at line 923 of file OSGBaseTypeTraits.h.

00924     {
00925         if(szString != NULL)
00926         {
00927             return Real64(strtod(szString, NULL));
00928         }
00929         else
00930         {
00931             return getZeroElement();
00932         }
00933     }

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

Definition at line 935 of file OSGBaseTypeTraits.h.

00936     {
00937         Char8 buffer[25];
00938 
00939         sprintf(buffer, "%e", val);
00940 
00941         return std::string(buffer);
00942     }


Member Data Documentation

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

Definition at line 895 of file OSGBaseTypeTraits.h.

const MathTypeProperties osg::TypeTraits< Real64 >::MathProp = RealValue [static]
 

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