Meta::MNum Class Reference

List of all members.

Public Types

typedef uint16_t Type
typedef uint8_t ConstantType
typedef void(MNum::* BoolType_ )() const

Public Member Functions

 MNum ()
 MNum (const MVar &v)
 MNum (const MNum &n)
 MNum (bool b)
 MNum (uint8_t v)
 MNum (int8_t v)
 MNum (uint16_t v)
 MNum (int16_t v)
 MNum (uint32_t v)
 MNum (int32_t v)
 MNum (uint64_t v)
 MNum (int64_t v)
 MNum (double v)
 MNum (float v)
 MNum (size_t nR, size_t nC, double *data=0)
 MNum (const MRational &r)
 MNum (const MMatrix &m)
 MNum (const MReal &x)
Type type () const
mstr toStr (bool concise=true) const
ConstantType asConstant () const
double asDouble () const
double toDouble () const
int64_t asLong () const
int64_t toLong () const
const mratasRat () const
mratasRat ()
mrat toRat () const
const mmatasMat () const
mmatasMat ()
const mrealasReal () const
mrealasReal ()
mreal toReal () const
double & operator() (size_t r, size_t c)
const double & operator() (size_t r, size_t c) const
MNumoperator= (const MNum &n)
MNumoperator+= (const MNum &n)
template<typename T >
MNum operator+ (const T &t) const
MNum operator+ (const mrat &r) const
MNum operator++ (int)
MNumoperator++ ()
MNumoperator-= (const MNum &n)
template<typename T >
MNum operator- (const T &t) const
MNum operator- (const mrat &r) const
MNum operator- () const
MNum operator-- (int)
MNumoperator-- ()
MNumoperator*= (const MNum &n)
template<typename T >
MNum operator* (const T &t) const
MNum operator* (const mrat &r) const
MNumoperator/= (const MNum &n)
template<typename T >
MNum operator/ (const T &t) const
MNum operator/ (const mrat &r) const
bool operator< (const MNum &n) const
template<typename T >
bool operator< (const T &t) const
bool operator> (const MNum &n) const
template<typename T >
bool operator> (const T &t) const
bool operator<= (const MNum &n) const
template<typename T >
bool operator<= (const T &t) const
bool operator>= (const MNum &n) const
template<typename T >
bool operator>= (const T &t) const
bool operator== (const MNum &n) const
template<typename T >
bool operator== (const T &t) const
bool operator!= (const MNum &n) const
template<typename T >
bool operator!= (const T &t) const
bool isDefined () const
bool isTrue () const
bool isFalse () const
void convertConstant ()
void BoolStub_ () const
 operator BoolType_ () const
MNum operator%= (const MNum &x)
template<typename T >
MNum operator% (const T &t) const

Static Public Member Functions

static MNum constant (ConstantType c)
static double constantToFloat (ConstantType c)
static double inf ()
static double negInf ()
static double nan ()
static double min ()
static double max ()
static double epsilon ()

Static Public Attributes

static const Type DefinedMask = 0x0020
static const Type Undefined = 0x0010
static const Type Constant = 0x0031
static const Type Integer = 0x0032
static const Type Rational = 0x0033
static const Type Float = 0x0034
static const Type Matrix = 0x0035
static const Type Real = 0x0036
static const ConstantType False = 0
static const ConstantType True = 1

Constructor & Destructor Documentation

Meta::MNum::MNum (  ) 

Constructor. Value is undefined.

Meta::MNum::MNum ( size_t  nR,
size_t  nC,
double *  data = 0 
)

Matrix constructor. See MMatrix.


Member Function Documentation

static MNum Meta::MNum::constant ( ConstantType  c  )  [static]

Construct a constant.

static double Meta::MNum::constantToFloat ( ConstantType  c  )  [static]
Returns:
A double precision approximation of the specified constant.
void Meta::MNum::convertConstant (  ) 

Convert this node's constant to an appropriate numeric type.

static double Meta::MNum::epsilon (  )  [static]
Returns:
The smallest value e that can be added to x such that x + e > x.
static double Meta::MNum::inf (  )  [static]
Returns:
The double representation of infinity.
bool Meta::MNum::isFalse (  )  const
Returns:
true if this is the constant False.
bool Meta::MNum::isTrue (  )  const
Returns:
true if this is the constant True.
static double Meta::MNum::max (  )  [static]
Returns:
The maximum value that a double may represent.
static double Meta::MNum::min (  )  [static]
Returns:
The minimum value that a double may represent.
static double Meta::MNum::nan (  )  [static]
Returns:
The double representation for "not a number".
static double Meta::MNum::negInf (  )  [static]
Returns:
The double representation of infinity.
const double& Meta::MNum::operator() ( size_t  r,
size_t  c 
) const

Index a matrix and return value.

double& Meta::MNum::operator() ( size_t  r,
size_t  c 
)

Index a matrix and return value.


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

Generated on Wed Mar 24 16:22:42 2010 for AndroMeta by  doxygen 1.6.1