linal::Variable Class Reference

#include <Variable.h>


Public Member Functions

 Variable ()
 Variable (const Variable &)
 Variable (const char *)
 Variable (const char *, const char *)
 Variable (const char *, const char *, const char *)
 Variable (const DString &)
 Creates a variable with the specified base, coefficient = 1, exponent = 1, and a "positive" sign.
 Variable (const DString &, const DString &)
 Creates a variable with the specified base, and exponent, coefficient = 1 and a "positive" sign.
 Variable (const DString &, const DString &, const DString &)
 Creates a variable with the specified base, exponent and coefficient.
 ~Variable ()
int operator== (const Variable &) const
Variableoperator= (const Variable &)
DString getBase () const
void editBase (DString &base)
void editBase (const char *base)
DString getCoefficient () const
void editCoefficient (DString &coeff)
void editCoefficient (const char *coeff)
DString getExponent () const
void editExponent (DString &exp)
void editExponent (const char *expo)
DString getSign () const
void toggleSign ()
DString & toDString ()
Variable productOfStrings (DString &x, DString &y)
 This method returns the Variable which is the sum of the two Strings.
double toDouble ()

Static Public Member Functions

static DString getVersion ()

Private Attributes

DString base
DString coefficient
DString exponent
DString sign


Constructor & Destructor Documentation

linal::Variable::Variable (  ) 

linal::Variable::Variable ( const Variable  ) 

linal::Variable::Variable ( const char *   ) 

linal::Variable::Variable ( const char *  ,
const char *   
)

linal::Variable::Variable ( const char *  ,
const char *  ,
const char *   
)

linal::Variable::Variable ( const DString &  base  ) 

Creates a variable with the specified base, coefficient = 1, exponent = 1, and a "positive" sign.

Parameters:
base String representing the base of the Variable

linal::Variable::Variable ( const DString &  base,
const DString &  exponent 
)

Creates a variable with the specified base, and exponent, coefficient = 1 and a "positive" sign.

Parameters:
base String representing the base of the Variable
exponent String representing exponent of the Variable

linal::Variable::Variable ( const DString &  base,
const DString &  coefficient,
const DString &  exponent 
)

Creates a variable with the specified base, exponent and coefficient.

The sign is taken from the coefficient.

Parameters:
base String representing the base of the Variable
coefficient String representing coefficient of the Variable
exponent String representing exponent of the Variable

linal::Variable::~Variable (  ) 


Member Function Documentation

int linal::Variable::operator== ( const Variable  )  const

Variable & linal::Variable::operator= ( const Variable  ) 

static DString linal::Variable::getVersion (  )  [inline, static]

DString linal::Variable::getBase (  )  const [inline]

void linal::Variable::editBase ( DString &  base  )  [inline]

void linal::Variable::editBase ( const char *  base  )  [inline]

DString linal::Variable::getCoefficient (  )  const [inline]

void linal::Variable::editCoefficient ( DString &  coeff  )  [inline]

void linal::Variable::editCoefficient ( const char *  coeff  )  [inline]

DString linal::Variable::getExponent (  )  const [inline]

void linal::Variable::editExponent ( DString &  exp  )  [inline]

void linal::Variable::editExponent ( const char *  expo  )  [inline]

DString linal::Variable::getSign (  )  const [inline]

void linal::Variable::toggleSign (  )  [inline]

DString & linal::Variable::toDString (  ) 

Variable linal::Variable::productOfStrings ( DString &  x,
DString &  y 
)

This method returns the Variable which is the sum of the two Strings.

Parameters:
x String first term
y String second term
Returns:
Variable sum

double linal::Variable::toDouble (  ) 


Field Documentation

DString linal::Variable::base [private]

DString linal::Variable::coefficient [private]

DString linal::Variable::exponent [private]

DString linal::Variable::sign [private]


The documentation for this class was generated from the following files:
Generated on Wed Jan 23 14:53:55 2008 by  doxygen 1.5.2