Honeycomb  0.1
Component-Model Framework
Public Types | Public Member Functions | Static Public Attributes | List of all members
honey::NumeralFloat< T > Class Template Reference

Numeric type info for floating point types. More...

#include <Numeral.h>

Public Types

typedef Info::Int Int
 Integer representation of type. More...
 
typedef Info::Real Real
 Real representation of type. More...
 
typedef Info::Real_ Real_
 Real operations and constants class. More...
 

Public Member Functions

constexpr T min () const
 Minimum possible value for type. More...
 
constexpr T max () const
 Maximum possible value for type. More...
 
constexpr T smallest () const
 Smallest representable value (close to zero) More...
 
constexpr T epsilon () const
 Smallest value such that 1.0 + epsilon != 1.0. More...
 
constexpr T inf () const
 Infinity. ie. 1.0 / 0.0. More...
 
constexpr T nan () const
 Not a number. ie. 0.0 / 0.0, sqrt(-1) More...
 

Static Public Attributes

static const int sizeBits = sizeof(T)*8
 Size of type in bits. More...
 

Detailed Description

template<class T>
class honey::NumeralFloat< T >

Numeric type info for floating point types.

Member Typedef Documentation

template<class T >
typedef Info::Int honey::NumeralFloat< T >::Int

Integer representation of type.

template<class T >
typedef Info::Real honey::NumeralFloat< T >::Real

Real representation of type.

template<class T >
typedef Info::Real_ honey::NumeralFloat< T >::Real_

Real operations and constants class.

Member Function Documentation

template<class T >
constexpr T honey::NumeralFloat< T >::epsilon ( ) const
inline

Smallest value such that 1.0 + epsilon != 1.0.

template<class T >
constexpr T honey::NumeralFloat< T >::inf ( ) const
inline

Infinity. ie. 1.0 / 0.0.

template<class T >
constexpr T honey::NumeralFloat< T >::max ( ) const
inline

Maximum possible value for type.

template<class T >
constexpr T honey::NumeralFloat< T >::min ( ) const
inline

Minimum possible value for type.

template<class T >
constexpr T honey::NumeralFloat< T >::nan ( ) const
inline

Not a number. ie. 0.0 / 0.0, sqrt(-1)

template<class T >
constexpr T honey::NumeralFloat< T >::smallest ( ) const
inline

Smallest representable value (close to zero)

Member Data Documentation

template<class T >
const int honey::NumeralFloat< T >::sizeBits = sizeof(T)*8
static

Size of type in bits.


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