Developer Documentation
ACG::NumLimitsT< Scalar > Class Template Reference

#include <ACG/Utils/NumLimitsT.h>

Public Member Functions

int min ()
 
int max ()
 
float min ()
 
float max ()
 
double min ()
 
double max ()
 

Static Public Member Functions

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

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();
static Scalar max()
Return the maximum absolte value a scalar type can store.
Definition: NumLimitsT.hh:97
static Scalar min()
Return the smallest absolte value a scalar type can store.
Definition: NumLimitsT.hh:95
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 91 of file NumLimitsT.hh.

Member Function Documentation

◆ max() [1/4]

template<typename Scalar >
static Scalar ACG::NumLimitsT< Scalar >::max ( )
inlinestatic

Return the maximum absolte value a scalar type can store.

Definition at line 97 of file NumLimitsT.hh.

◆ max() [2/4]

int ACG::NumLimitsT< int >::max ( )
inline

Definition at line 102 of file NumLimitsT.hh.

◆ max() [3/4]

float ACG::NumLimitsT< float >::max ( )
inline

Definition at line 105 of file NumLimitsT.hh.

◆ max() [4/4]

double ACG::NumLimitsT< double >::max ( )
inline

Definition at line 108 of file NumLimitsT.hh.

◆ min() [1/4]

template<typename Scalar >
static Scalar ACG::NumLimitsT< Scalar >::min ( )
inlinestatic

Return the smallest absolte value a scalar type can store.

Definition at line 95 of file NumLimitsT.hh.

◆ min() [2/4]

int ACG::NumLimitsT< int >::min ( )
inline

Definition at line 101 of file NumLimitsT.hh.

◆ min() [3/4]

float ACG::NumLimitsT< float >::min ( )
inline

Definition at line 104 of file NumLimitsT.hh.

◆ min() [4/4]

double ACG::NumLimitsT< double >::min ( )
inline

Definition at line 107 of file NumLimitsT.hh.


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