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

#include <OSGBaseTypeTraits.h>

Inheritance diagram for osg::osg::TypeTraits< Real128 >:

osg::TypeTraitsBase

List of all members.

Public Types

typedef Real128 RealReturnType

Static Public Member Functions

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

Static Public Attributes

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


Detailed Description

template<>
struct osg::osg::TypeTraits< Real128 >

Definition at line 972 of file OSGBaseTypeTraits.h.


Member Typedef Documentation

typedef Real128 osg::osg::TypeTraits< Real128 >::RealReturnType

Definition at line 974 of file OSGBaseTypeTraits.h.


Member Function Documentation

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

Definition at line 980 of file OSGBaseTypeTraits.h.

00981     {
00982         return 0.0;
00983     }

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

Definition at line 985 of file OSGBaseTypeTraits.h.

00986     {
00987         return 1.0;
00988     }

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

Definition at line 990 of file OSGBaseTypeTraits.h.

00991     {
00992         return DBL_MAX;
00993     }

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

Definition at line 995 of file OSGBaseTypeTraits.h.

00996     {
00997         return DBL_MIN;
00998     }

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

Definition at line 1001 of file OSGBaseTypeTraits.h.

01001 { return rVal; };

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

Definition at line 1002 of file OSGBaseTypeTraits.h.

01002 { return rVal; };

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

Definition at line 1005 of file OSGBaseTypeTraits.h.

01006     {
01007         if(szString != NULL)
01008         {
01009 #if defined(WIN32) || defined(__sun)
01010             return Real128(strtod(szString, NULL));
01011 #else
01012             return Real128(strtold(szString, NULL));
01013 #endif
01014         }
01015         else
01016         {
01017             return getZeroElement();
01018         }
01019     }

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

Definition at line 1021 of file OSGBaseTypeTraits.h.

01022     {
01023         Char8 buffer[25];
01024 
01025         sprintf(buffer, "%Le", val);
01026 
01027         return std::string(buffer);
01028     }


Member Data Documentation

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

Definition at line 977 of file OSGBaseTypeTraits.h.

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

Definition at line 978 of file OSGBaseTypeTraits.h.


The documentation for this struct was generated from the following file:

Generated on Mon Mar 17 11:10:43 2008 for OpenSG by  doxygen 1.5.5