Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ACG::NumLimitsT< Scalar > Class Template Reference

#include <ACG/Utils/NumLimitsT.h>

Public Member Functions

template<>
int min ()
 
template<>
int max ()
 
template<>
float min ()
 
template<>
float max ()
 
template<>
double min ()
 
template<>
double max ()
 

Static Public Member Functions

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

Detailed Description

template<typename Scalar>
class ACG::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 <ACG/Utils/NumLimitsT.hh>
int float_min = ACG::NumLimitsT<float>::min();
float double_max = ACG::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 98 of file NumLimitsT.hh.


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