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

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

#include <OSGBaseTypeTraits.h>

Inheritance diagram for 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::TypeTraits< Real128 >

Definition at line 950 of file OSGBaseTypeTraits.h.


Member Typedef Documentation

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

Definition at line 952 of file OSGBaseTypeTraits.h.


Member Function Documentation

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

Definition at line 958 of file OSGBaseTypeTraits.h.

00959     {
00960         return 0.0;
00961     }

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

Definition at line 963 of file OSGBaseTypeTraits.h.

00964     {
00965         return 1.0;
00966     }

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

Definition at line 968 of file OSGBaseTypeTraits.h.

00969     {
00970         return DBL_MAX;
00971     }

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

Definition at line 973 of file OSGBaseTypeTraits.h.

00974     {
00975         return DBL_MIN;
00976     }

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

Definition at line 979 of file OSGBaseTypeTraits.h.

00979 { return rVal; };

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

Definition at line 980 of file OSGBaseTypeTraits.h.

00980 { return rVal; };

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

Definition at line 983 of file OSGBaseTypeTraits.h.

00984     {
00985         if(szString != NULL)
00986         {
00987 #if defined(WIN32)
00988             return Real128(strtod(szString, NULL));
00989 #else
00990             return Real128(strtold(szString, NULL));
00991 #endif
00992         }
00993         else
00994         {
00995             return getZeroElement();
00996         }
00997     }

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

Definition at line 999 of file OSGBaseTypeTraits.h.

01000     {
01001         Char8 buffer[25];
01002 
01003         sprintf(buffer, "%Le", val);
01004 
01005         return std::string(buffer);
01006     }


Member Data Documentation

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

Definition at line 955 of file OSGBaseTypeTraits.h.

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

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