#include <variable.h>
Inheritance diagram for Variable:

Public Member Functions | |
| CASObject * | Absolute () const |
| Returns the absolute representation of the variable. | |
| void | AbsoluteIP () |
| Makes the variable in-place. | |
| CASObject * | Add (const CASObject *addend) const |
Adds a CASObject to the variable. | |
| CASObject * | Clone () const |
| Clones the variable. | |
| CASObject * | Divide (const CASObject *divisor) const |
Divides the variable by a CASObject. | |
| CASObject * | Evaluate () const |
| Evaluates the variable. | |
| CASObject * | GCD (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. | |
| CASObject * | Invert () 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. | |
| CASObject * | Modulo (const CASObject *divisor) const |
| Calculates the modulus. | |
| CASObject * | Multiply (const CASObject *factor) const |
Multiplies the variable by a CASObject. | |
| const Variable & | operator= (const Variable &v) |
| Assignment operator. | |
| CASObject * | Power (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. | |
| CASObject * | SortWeight () const |
| Calculates the sort weight of the variable. | |
| CASObject * | Subtract (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 |
CASSymbolic.
Definition at line 55 of file variable.h.
| CASType Variable::GetType | ( | ) | const [inline, virtual] |
Returns the CASType of the Variable.
CT_VARIABLE. Implements CASObject.
Definition at line 96 of file variable.h.
std::string Variable::name [private] |
Holds the name of the variable.
Definition at line 62 of file variable.h.
1.4.7