clipper
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Friends
Double< Type > Class Template Reference

Implements a wrapper around one of the hardware floating-point data types so that these can be used as a "Numeric" template parameter. More...

List of all members.

Public Member Functions

 Double (const Type &v=0)
const Type & get () const
std::string toString () const
Double operator- () const
Double operator+ (const Double &o) const
Double operator- (const Double &o) const
Double operator* (const Double &o) const
Double operator/ (const Double &o) const
Doubleoperator+= (const Double &o)
Doubleoperator-= (const Double &o)
Doubleoperator*= (const Double &o)
Doubleoperator/= (const Double &o)
bool operator== (const Double &o) const
bool operator!= (const Double &o) const
bool operator< (const Double &o) const
bool operator> (const Double &o) const
bool operator>= (const Double &o) const
bool operator<= (const Double &o) const
template<>
std::string getName ()
template<>
std::string getName ()
template<>
std::string getName ()
template<>
Double< float > binomial (unsigned int n, unsigned int k)
template<>
Double< double > binomial (unsigned int n, unsigned int k)
template<>
Double< long double > binomial (unsigned int n, unsigned int k)

Static Public Member Functions

static std::string getName ()
static Double MINUS_INFINITY ()
static Double binomial (unsigned int n, unsigned int k)

Static Public Attributes

static const unsigned int IterationScale = 20

Private Attributes

Type m_v

Friends

std::ostream & operator<< (std::ostream &os, const Double< Type > &d)

Detailed Description

template<typename Type = double>
class Double< Type >

Implements a wrapper around one of the hardware floating-point data types so that these can be used as a "Numeric" template parameter.

Definition at line 315 of file clipper.cc.


Constructor & Destructor Documentation

template<typename Type = double>
Double< Type >::Double ( const Type &  v = 0) [inline]

Definition at line 321 of file clipper.cc.


Member Function Documentation

template<typename Type = double>
static Double Double< Type >::binomial ( unsigned int  n,
unsigned int  k 
) [inline, static]
template<>
Double< float > Double< float >::binomial ( unsigned int  n,
unsigned int  k 
) [inline]

Definition at line 509 of file clipper.cc.

template<>
Double< double > Double< double >::binomial ( unsigned int  n,
unsigned int  k 
) [inline]

Definition at line 515 of file clipper.cc.

template<>
Double< long double > Double< long double >::binomial ( unsigned int  n,
unsigned int  k 
) [inline]

Definition at line 521 of file clipper.cc.

template<typename Type = double>
const Type& Double< Type >::get ( ) const [inline]

Definition at line 338 of file clipper.cc.

template<typename Type = double>
static std::string Double< Type >::getName ( ) [static]
template<>
std::string Double< float >::getName ( )

Definition at line 434 of file clipper.cc.

template<>
std::string Double< double >::getName ( )

Definition at line 440 of file clipper.cc.

template<>
std::string Double< long double >::getName ( )

Definition at line 446 of file clipper.cc.

template<typename Type = double>
static Double Double< Type >::MINUS_INFINITY ( ) [inline, static]

Definition at line 331 of file clipper.cc.

template<typename Type = double>
bool Double< Type >::operator!= ( const Double< Type > &  o) const [inline]

Definition at line 407 of file clipper.cc.

template<typename Type = double>
Double Double< Type >::operator* ( const Double< Type > &  o) const [inline]

Definition at line 368 of file clipper.cc.

template<typename Type = double>
Double& Double< Type >::operator*= ( const Double< Type > &  o) [inline]

Definition at line 390 of file clipper.cc.

template<typename Type = double>
Double Double< Type >::operator+ ( const Double< Type > &  o) const [inline]

Definition at line 358 of file clipper.cc.

template<typename Type = double>
Double& Double< Type >::operator+= ( const Double< Type > &  o) [inline]

Definition at line 378 of file clipper.cc.

template<typename Type = double>
Double Double< Type >::operator- ( ) const [inline]

Definition at line 353 of file clipper.cc.

template<typename Type = double>
Double Double< Type >::operator- ( const Double< Type > &  o) const [inline]

Definition at line 363 of file clipper.cc.

template<typename Type = double>
Double& Double< Type >::operator-= ( const Double< Type > &  o) [inline]

Definition at line 384 of file clipper.cc.

template<typename Type = double>
Double Double< Type >::operator/ ( const Double< Type > &  o) const [inline]

Definition at line 373 of file clipper.cc.

template<typename Type = double>
Double& Double< Type >::operator/= ( const Double< Type > &  o) [inline]

Definition at line 396 of file clipper.cc.

template<typename Type = double>
bool Double< Type >::operator< ( const Double< Type > &  o) const [inline]

Definition at line 412 of file clipper.cc.

template<typename Type = double>
bool Double< Type >::operator<= ( const Double< Type > &  o) const [inline]

Definition at line 427 of file clipper.cc.

template<typename Type = double>
bool Double< Type >::operator== ( const Double< Type > &  o) const [inline]

Definition at line 402 of file clipper.cc.

template<typename Type = double>
bool Double< Type >::operator> ( const Double< Type > &  o) const [inline]

Definition at line 417 of file clipper.cc.

template<typename Type = double>
bool Double< Type >::operator>= ( const Double< Type > &  o) const [inline]

Definition at line 422 of file clipper.cc.

template<typename Type = double>
std::string Double< Type >::toString ( ) const [inline]

Definition at line 343 of file clipper.cc.


Friends And Related Function Documentation

template<typename Type = double>
std::ostream& operator<< ( std::ostream &  os,
const Double< Type > &  d 
) [friend]

Definition at line 348 of file clipper.cc.


Member Data Documentation

template<typename Type = double>
const unsigned int Double< Type >::IterationScale = 20 [static]

Definition at line 327 of file clipper.cc.

template<typename Type = double>
Type Double< Type >::m_v [private]

Definition at line 318 of file clipper.cc.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Friends Defines