Variable Class Reference
[SymbolicValues]

Class which implements a mathematical variable. More...

#include <variable.h>

Inheritance diagram for Variable:

CASSymbolic CASObject List of all members.

Public Member Functions

CASObjectAbsolute () const
 Returns the absolute representation of the variable.
void AbsoluteIP ()
 Makes the variable in-place.
CASObjectAdd (const CASObject *addend) const
 Adds a CASObject to the variable.
CASObjectClone () const
 Clones the variable.
CASObjectDivide (const CASObject *divisor) const
 Divides the variable by a CASObject.
CASObjectEvaluate () const
 Evaluates the variable.
CASObjectGCD (const CASObject *o) const
 Computes the gcd of the variable and a CASObject.
void Get (char *s, unsigned long size) const
 Returns the string representation of the variable.
void Get (std::string &s) const
 Returns the string representation of the variable.
CASType GetType () const
 Returns the type of the Variable.
CASObjectInvert () const
 Returns the inverted representation of the variable.
void InvertIP ()
 Inverts the variable in-place.
bool IsEqual (const CASObject *o) const
 Indicates whether or not the variable is equal to a CASObject.
bool IsGT (const CASObject *o) const
 Indicates whether or not the variable is greater than a CASObject.
bool IsLT (const CASObject *o) const
 Indicates whether or not the variable is less than a CASObject.
bool IsOne () const
 Indicates whether or not the variable is one.
bool IsPureNumerical () const
 Indicates whether or not the variable is pure numerical.
bool IsSimilar (const CASObject *o) const
 Indicates whether or not the variable is similar to a CASObject.
bool IsZero () const
 Indicates whether or not the variable is zero.
unsigned long Length () const
 Length of the variable in string representation.
CASObjectModulo (const CASObject *divisor) const
 Calculates the modulus.
CASObjectMultiply (const CASObject *factor) const
 Multiplies the variable by a CASObject.
const Variableoperator= (const Variable &v)
 Assignment operator.
CASObjectPower (const CASObject *exp) const
 Raises the variable to the x-th power.
void Print () const
 Prints the string representation of the variable to stdout.
void Sort ()
 Sorts the variable.
CASObjectSortWeight () const
 Calculates the sort weight of the variable.
CASObjectSubtract (const CASObject *subtrahend) const
 Subtracts a CASObject from the variable.
 Variable (const Variable &v)
 Copy constructor.
 Variable (const std::string n)
 Constructor.
 Variable (const std::string n, const CASObject *mag)
 Constructor.
 Variable ()
 Constructor.
 ~Variable ()
 Destructor.

Private Attributes

std::string name
 Holds the name of the variable.

Friends

class CASConvert

Detailed Description

Class which implements a mathematical variable. The class is derived from CASSymbolic.

Definition at line 55 of file variable.h.


Member Function Documentation

CASType Variable::GetType (  )  const [inline, virtual]

Returns the CASType of the Variable.

Returns:
CT_VARIABLE.

Implements CASObject.

Definition at line 96 of file variable.h.


Member Data Documentation

std::string Variable::name [private]

Holds the name of the variable.

Definition at line 62 of file variable.h.


The documentation for this class was generated from the following files:
Generated on Sun Dec 31 01:57:37 2006 for ECAS by  doxygen 1.4.7