The Finite Resolution Dynamics Software
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
tNumberPi< numType > Class Template Reference

A class that holds the number pi. More...

#include <numberpi.h>

Static Public Member Functions

static const numType & lowerBound ()
 A function that returns a lower bound for the number Pi. More...
 
static const numType & upperBound ()
 A function that returns an upper bound for the number Pi. More...
 

Private Member Functions

template<>
void computeBoundsForPi ()
 
template<>
void computeBoundsForPi ()
 
template<>
void computeBoundsForPi ()
 

Static Private Member Functions

static void computeBoundsForPi ()
 Computation of a lower and an upper bound for the number pi. More...
 

Static Private Attributes

static numType theLowerPi = 0
 A lower bound for the number pi. More...
 
static numType theUpperPi = 0
 An upper bound for the number pi. More...
 

Detailed Description

template<class numType>
class tNumberPi< numType >

A class that holds the number pi.

Definition at line 48 of file numberpi.h.

Member Function Documentation

◆ computeBoundsForPi() [1/4]

template<class numType >
static void tNumberPi< numType >::computeBoundsForPi ( )
staticprivate

Computation of a lower and an upper bound for the number pi.

Referenced by tNumberPi< numType >::lowerBound(), and tNumberPi< numType >::upperBound().

◆ computeBoundsForPi() [2/4]

template<>
void tNumberPi< float >::computeBoundsForPi ( )
inlineprivate

◆ computeBoundsForPi() [3/4]

template<>
void tNumberPi< double >::computeBoundsForPi ( )
inlineprivate

◆ computeBoundsForPi() [4/4]

template<>
void tNumberPi< long double >::computeBoundsForPi ( )
inlineprivate

◆ lowerBound()

template<class numType >
const numType & tNumberPi< numType >::lowerBound ( )
inlinestatic

A function that returns a lower bound for the number Pi.

Definition at line 72 of file numberpi.h.

References tNumberPi< numType >::computeBoundsForPi(), and tNumberPi< numType >::theLowerPi.

◆ upperBound()

template<class numType >
const numType & tNumberPi< numType >::upperBound ( )
inlinestatic

A function that returns an upper bound for the number Pi.

Definition at line 80 of file numberpi.h.

References tNumberPi< numType >::computeBoundsForPi(), and tNumberPi< numType >::theUpperPi.

Member Data Documentation

◆ theLowerPi

template<class numType >
numType tNumberPi< numType >::theLowerPi = 0
staticprivate

A lower bound for the number pi.

Definition at line 59 of file numberpi.h.

Referenced by tNumberPi< numType >::computeBoundsForPi(), and tNumberPi< numType >::lowerBound().

◆ theUpperPi

template<class numType >
numType tNumberPi< numType >::theUpperPi = 0
staticprivate

An upper bound for the number pi.

Definition at line 62 of file numberpi.h.

Referenced by tNumberPi< numType >::computeBoundsForPi(), and tNumberPi< numType >::upperBound().


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