utils::Functions Class Reference

#include <Functions.h>


Public Member Functions

 Functions (const DString &bean, DArray< DArray< LTree > > &hm)
 Deprecated as of 4.0.
linal::LTreegetFunctionResult (linal::LinAl &la)
 Deprecated as of 4.0.
linal::LTreegetFunctionResult ()
 Returns the result of the function as an LTree.

Static Public Member Functions

static DString getVersion ()
static bool isFunction (const DString &bean)
static linal::LTreedoFunction (const DString &bean, const DArray< DArray< LTree > > &os, LinAl &la)
 Returns the result of a function Object[] uses the follow structure: os[0] = Object[LTree[]], os[1] = LinAl, os[2] = misc.
static LTreecreateFunctionTree (const DString &bean, const DArray< DArray< LTree > > &os, LinAl &la)
static Matrix newMatrix (const DArray< DArray< LTree > > &params)
 Creates a new matrix with the specified array.
static DString listFunctions ()
static DString getHelp (const DString &)
static double extractDouble (LTree param, const LinAl *la)

Static Private Member Functions

static DArray< DString > * getFunctions ()

Private Attributes

DString * functionType
DArray< DArray< LTree > > * parametersLTree


Constructor & Destructor Documentation

utils::Functions::Functions ( const DString &  bean,
DArray< DArray< LTree > > &  hm 
)

Deprecated as of 4.0.


Member Function Documentation

static DString utils::Functions::getVersion (  )  [inline, static]

bool utils::Functions::isFunction ( const DString &  bean  )  [static]

LTree * utils::Functions::getFunctionResult ( linal::LinAl la  ) 

Deprecated as of 4.0.

LTree * utils::Functions::getFunctionResult (  ) 

Returns the result of the function as an LTree.

Note results are given based on the last given parameters. See getParameters and setParameters

Returns:
LTree

LTree * utils::Functions::doFunction ( const DString &  bean,
const DArray< DArray< LTree > > &  os,
LinAl la 
) [static]

Returns the result of a function Object[] uses the follow structure: os[0] = Object[LTree[]], os[1] = LinAl, os[2] = misc.

Parameters:
bean String name of function
os Object[] parameters of function(see above)
Returns:
LTree result
Exceptions:
DavidException 

static LTree* utils::Functions::createFunctionTree ( const DString &  bean,
const DArray< DArray< LTree > > &  os,
LinAl la 
) [static]

Matrix utils::Functions::newMatrix ( const DArray< DArray< LTree > > &  params  )  [static]

Creates a new matrix with the specified array.

Parameters:
variables LTree[][]
Returns:
Matrix

DString utils::Functions::listFunctions (  )  [static]

DString utils::Functions::getHelp ( const DString &   )  [static]

double utils::Functions::extractDouble ( LTree  param,
const LinAl la 
) [static]

DArray< DString > * utils::Functions::getFunctions (  )  [static, private]


Field Documentation

DString* utils::Functions::functionType [private]

DArray< DArray<LTree> >* utils::Functions::parametersLTree [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