Public Types | List of all members
blaze::NegativeEpsilon< E > Class Template Reference

Negative epsilon value for floating point data types.The NegativeEpsilon class is a wrapper class around the functionality of the blaze::Limits class. It represents the negative smallest difference between two values of any floating point data type. In order to assign a negative epsilon value, the Epsilon class can be implicitly converted to the three built-in floating point data types float, double and long double. More...

#include <Epsilon.h>

Public Types

typedef E PositiveType
 The positive epsilon type.
 

Public Member Functions

Unary plus/minus operators
const NegativeEpsilonoperator+ () const
 Returns the negative epsilon value for all floating point data types. More...
 
const PositiveType operator- () const
 Returns the positive epsilon value for all floating point data types. More...
 
Conversion operator
template<typename T >
 operator const T () const
 Conversion operator to the required floating point data type. More...
 

Private Member Functions

Constructor
 NegativeEpsilon ()
 The default constructor of the NegativeEpsilon class.
 
Forbidden operations
NegativeEpsilonoperator= (const NegativeEpsilon &)
 Copy assignment operator (private & undefined)
 
void * operator& () const
 Address operator (private & undefined)
 

Detailed Description

template<typename E>
class blaze::NegativeEpsilon< E >

Negative epsilon value for floating point data types.

The NegativeEpsilon class is a wrapper class around the functionality of the blaze::Limits class. It represents the negative smallest difference between two values of any floating point data type. In order to assign a negative epsilon value, the Epsilon class can be implicitly converted to the three built-in floating point data types float, double and long double.

Note
The NegativeEpsilon class is a helper class for the Epsilon class. It cannot be instantiated on its own, but can only be used by the Epsilon class.

Member Function Documentation

template<typename E >
template<typename T >
blaze::NegativeEpsilon< E >::operator const T ( ) const
inline

Conversion operator to the required floating point data type.

The conversion operator returns the negative epsilon value for the floating point data type T.

template<typename E >
const NegativeEpsilon< E > & blaze::NegativeEpsilon< E >::operator+ ( ) const
inline

Returns the negative epsilon value for all floating point data types.

Returns
The negative epsilon value.
template<typename E >
const NegativeEpsilon< E >::PositiveType blaze::NegativeEpsilon< E >::operator- ( ) const
inline

Returns the positive epsilon value for all floating point data types.

Returns
The positive epsilon value.

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