ECF 1.5
Public Member Functions | Public Attributes | Protected Attributes | List of all members
cart::FunctionSet Class Reference
Inheritance diagram for cart::FunctionSet:

Public Member Functions

 FunctionSet (string gettype)
 
bool addFunction (string name)
 
bool addFunction (string name, uint numArgs)
 
void evaluate (voidP inputs, void *result, uint funcNum)
 

Public Attributes

map< string, bool > existFunc
 

Protected Attributes

string type
 

Detailed Description

Definition at line 20 of file FunctionSet.h.

Constructor & Destructor Documentation

◆ FunctionSet()

cart::FunctionSet::FunctionSet ( string  gettype)

Gettype in constructor defines data type for evaluation.

Definition at line 5 of file FunctionSet.cpp.

◆ ~FunctionSet()

cart::FunctionSet::~FunctionSet ( )
inline

Definition at line 39 of file FunctionSet.h.

Member Function Documentation

◆ addFunction() [1/2]

bool cart::FunctionSet::addFunction ( string  name)

Add function defined by its name, take default number of arguments.

Definition at line 21 of file FunctionSet.cpp.

◆ addFunction() [2/2]

bool cart::FunctionSet::addFunction ( string  name,
uint  numArgs 
)

Add function defined by its name and number of arguments.

Definition at line 130 of file FunctionSet.cpp.

◆ evaluate()

void cart::FunctionSet::evaluate ( voidP  inputs,
void *  result,
uint  funcNum 
)

Evaluate function with inputs and function defined by funcNum, return result in parameter result.

Definition at line 222 of file FunctionSet.cpp.

Member Data Documentation

◆ existFunc

map<string, bool> cart::FunctionSet::existFunc

Definition at line 41 of file FunctionSet.h.

◆ type

string cart::FunctionSet::type
protected

Definition at line 43 of file FunctionSet.h.


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