OpenMesh::Utils::NumLimitsT< Scalar > Class Template Reference

#include <OpenMesh/Utils/NumLimitsT.h>

List of all members.

Public Member Functions

template<>
bool is_float ()
template<>
bool is_float ()
template<>
bool is_float ()
template<>
bool is_signed ()
template<>
bool is_signed ()
template<>
bool is_signed ()
template<>
bool is_signed ()
template<>
bool is_signed ()
template<>
double max ()
template<>
float max ()
template<>
int max ()
template<>
double min ()
template<>
float min ()
template<>
int min ()

Static Public Member Functions

static bool is_float ()
static bool is_integer ()
static bool is_signed ()
static Scalar max ()
 Return the maximum absolte value a scalar type can store.
static Scalar min ()
 Return the smallest absolte value a scalar type can store.

Detailed Description

template<typename Scalar>
class OpenMesh::Utils::NumLimitsT< Scalar >

This class provides the maximum and minimum values a certain scalar type (int, float, or double) can store. You can use it like this:

    #include <OpenMesh/Utils/NumLimitsT.hh>

    int   float_min   = OpenMesh::NumLimitsT<float>::min();
    float double_max  = OpenMesh::NumLimitsT<double>::max();
Note:
This functionality should be provided by std::numeric_limits. This template does not exist on gcc <= 2.95.3. The class template NumLimitsT is just a workaround.

Definition at line 89 of file NumLimitsT.hh.


Member Function Documentation

template<>
bool OpenMesh::Utils::NumLimitsT< long double >::is_float (  )  [inline]

Definition at line 111 of file NumLimitsT.hh.

template<>
bool OpenMesh::Utils::NumLimitsT< double >::is_float (  )  [inline]

Definition at line 108 of file NumLimitsT.hh.

template<>
bool OpenMesh::Utils::NumLimitsT< float >::is_float (  )  [inline]

Definition at line 105 of file NumLimitsT.hh.

template<typename Scalar >
static bool OpenMesh::Utils::NumLimitsT< Scalar >::is_float (  )  [inline, static]

Definition at line 97 of file NumLimitsT.hh.

template<typename Scalar >
static bool OpenMesh::Utils::NumLimitsT< Scalar >::is_integer (  )  [inline, static]

Definition at line 98 of file NumLimitsT.hh.

template<>
bool OpenMesh::Utils::NumLimitsT< unsigned long long >::is_signed (  )  [inline]

Definition at line 128 of file NumLimitsT.hh.

template<>
bool OpenMesh::Utils::NumLimitsT< unsigned long >::is_signed (  )  [inline]

Definition at line 125 of file NumLimitsT.hh.

template<>
bool OpenMesh::Utils::NumLimitsT< unsigned int >::is_signed (  )  [inline]

Definition at line 122 of file NumLimitsT.hh.

template<>
bool OpenMesh::Utils::NumLimitsT< unsigned short >::is_signed (  )  [inline]

Definition at line 119 of file NumLimitsT.hh.

template<>
bool OpenMesh::Utils::NumLimitsT< unsigned char >::is_signed (  )  [inline]

Definition at line 116 of file NumLimitsT.hh.

template<typename Scalar >
static bool OpenMesh::Utils::NumLimitsT< Scalar >::is_signed (  )  [inline, static]

Definition at line 99 of file NumLimitsT.hh.

template<>
double OpenMesh::Utils::NumLimitsT< double >::max (  )  [inline]

Definition at line 138 of file NumLimitsT.hh.

template<>
float OpenMesh::Utils::NumLimitsT< float >::max (  )  [inline]

Definition at line 135 of file NumLimitsT.hh.

template<>
int OpenMesh::Utils::NumLimitsT< int >::max (  )  [inline]

Definition at line 132 of file NumLimitsT.hh.

template<typename Scalar >
static Scalar OpenMesh::Utils::NumLimitsT< Scalar >::max (  )  [inline, static]

Return the maximum absolte value a scalar type can store.

Definition at line 95 of file NumLimitsT.hh.

template<>
double OpenMesh::Utils::NumLimitsT< double >::min (  )  [inline]

Definition at line 137 of file NumLimitsT.hh.

template<>
float OpenMesh::Utils::NumLimitsT< float >::min (  )  [inline]

Definition at line 134 of file NumLimitsT.hh.

template<>
int OpenMesh::Utils::NumLimitsT< int >::min (  )  [inline]

Definition at line 131 of file NumLimitsT.hh.

template<typename Scalar >
static Scalar OpenMesh::Utils::NumLimitsT< Scalar >::min (  )  [inline, static]

Return the smallest absolte value a scalar type can store.

Definition at line 93 of file NumLimitsT.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


openmesh
Author(s): Benjamin Pitzer
autogenerated on Fri Jan 11 12:11:21 2013