Public Member Functions | Public Attributes
labust::math::Limit< T > Struct Template Reference

#include <Limits.hpp>

List of all members.

Public Member Functions

 Limit ()
 Limit (T min, T max)

Public Attributes

max
min

Detailed Description

template<class T = double>
struct labust::math::Limit< T >

The class implements a simple limit class. The class is similar to the std::pair however it instantiates the member variables to NaN values so that they are comparison neutral if not defined.

Template Parameters:
TThe precision template variable.

Definition at line 51 of file Limits.hpp.


Constructor & Destructor Documentation

template<class T = double>
labust::math::Limit< T >::Limit ( ) [inline]

Default constructor. Instantiates member variables to the NaN.

Definition at line 56 of file Limits.hpp.

template<class T = double>
labust::math::Limit< T >::Limit ( min,
max 
) [inline]

Main constructor. Take the minimum and maximum limits.

Parameters:
minMinimum of the limited range.
maxMaximum of the limited range.

Definition at line 65 of file Limits.hpp.


Member Data Documentation

template<class T = double>
T labust::math::Limit< T >::max

Definition at line 67 of file Limits.hpp.

template<class T = double>
T labust::math::Limit< T >::min

Minimum and maximum of the limit range.

Definition at line 67 of file Limits.hpp.


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


snippets
Author(s): Gyula Nagy
autogenerated on Mon Oct 6 2014 01:39:41