User Manual, Developers Guide and API Documentation

wns::Enumerator Class Reference

Totally static class for enumeration of especially FP values. More...

#include <Enumerator.hpp>

List of all members.

Static Public Member Functions

static long double pred (const long double &v)
static double pred (const double &v)
static float pred (const float &v)
template<typename T>
static T pred (const T &v)
 Return predecessor of v.
static long double succ (const long double &v)
static double succ (const double &v)
static float succ (const float &v)
template<typename T>
static T succ (const T &v)
 Return successor of v.

Static Private Member Functions

template<typename T>
static T fp_pred (const T &v)
template<typename T>
static T fp_succ (const T &v)


Detailed Description

With this class one can enumerate over all values of a type with succ(v) and pred(v). For all but floating point data types this is a wrapper for ++v and --v.

Definition at line 47 of file Enumerator.hpp.


Member Function Documentation

template<typename T>
static T wns::Enumerator::fp_pred ( const T &  v  )  [inline, static, private]

Definition at line 138 of file Enumerator.hpp.

template<typename T>
static T wns::Enumerator::fp_succ ( const T &  v  )  [inline, static, private]

Definition at line 96 of file Enumerator.hpp.

static long double wns::Enumerator::pred ( const long double v  )  [inline, static]

Definition at line 77 of file Enumerator.hpp.

static double wns::Enumerator::pred ( const double v  )  [inline, static]

Definition at line 75 of file Enumerator.hpp.

static float wns::Enumerator::pred ( const float &  v  )  [inline, static]

Definition at line 73 of file Enumerator.hpp.

template<typename T>
static T wns::Enumerator::pred ( const T &  v  )  [inline, static]

Parameters:
v (in) return the predecessor of this value.

Definition at line 71 of file Enumerator.hpp.

static long double wns::Enumerator::succ ( const long double v  )  [inline, static]

Definition at line 63 of file Enumerator.hpp.

static double wns::Enumerator::succ ( const double v  )  [inline, static]

Definition at line 61 of file Enumerator.hpp.

static float wns::Enumerator::succ ( const float &  v  )  [inline, static]

Definition at line 59 of file Enumerator.hpp.

template<typename T>
static T wns::Enumerator::succ ( const T &  v  )  [inline, static]

Parameters:
v (in) return the successor of this value.

Definition at line 57 of file Enumerator.hpp.


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

Generated on Sat May 26 03:32:50 2012 for openWNS by  doxygen 1.5.5