plll  1.0
plll::arithmetic::RationalContext Class Reference

Represents an arithmetic context for rational numbers. More...

#include <rational.hpp>

Public Types

enum  
 The properties of rational numbers.
 
typedef Rational Real
 The rational type.
 
typedef Rational Type
 The rational type.
 

Public Member Functions

 RationalContext () PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE
 Creates a new rational context.
 

Static Public Member Functions

static unsigned long getMaxRealPrecision () PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE
 Returns the maximal possible precision for this context. More...
 
static unsigned long getMinRealPrecision () PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE
 Returns the minimal possible precision for this context. More...
 
static unsigned long getRealPrecision () PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE
 Returns the precision of this context. More...
 
static void setRealPrecision (unsigned long prec) PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE
 Sets the precision of this context. (Will do nothing.) More...
 

Detailed Description

Represents an arithmetic context for rational numbers.

See also
Contexts.

Definition at line 355 of file rational.hpp.

Member Function Documentation

static unsigned long plll::arithmetic::RationalContext::getMaxRealPrecision ( )
inlinestatic

Returns the maximal possible precision for this context.

Will return a very large number.

Definition at line 422 of file rational.hpp.

static unsigned long plll::arithmetic::RationalContext::getMinRealPrecision ( )
inlinestatic

Returns the minimal possible precision for this context.

Will return a very large number.

Definition at line 412 of file rational.hpp.

static unsigned long plll::arithmetic::RationalContext::getRealPrecision ( )
inlinestatic

Returns the precision of this context.

Will return a very large number.

Definition at line 402 of file rational.hpp.

static void plll::arithmetic::RationalContext::setRealPrecision ( unsigned long  prec)
inlinestatic

Sets the precision of this context. (Will do nothing.)

Since rationals always have infinite precision, this simply does nothing.

Parameters
precThe precision to be set.

Definition at line 393 of file rational.hpp.


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