ECF 1.5
Public Member Functions | Protected Attributes | List of all members
cart::Function Class Referenceabstract
Inheritance diagram for cart::Function:
cart::Add< T > cart::And< T > cart::Cos< T > cart::Div< T > cart::Mul< T > cart::Not< T > cart::Or< T > cart::Sin< T > cart::Sub< T > cart::Xnor< T > cart::Xor< T >

Public Member Functions

 Function (uint numArgs)
 
virtual void evaluate (voidP inputs, void *result)=0
 
string getName ()
 
uint getNumOfArgs ()
 

Protected Attributes

string name_
 
uint numOfArgs_
 

Detailed Description

Definition at line 8 of file Function.h.

Constructor & Destructor Documentation

◆ Function() [1/2]

cart::Function::Function ( )
inline

Definition at line 11 of file Function.h.

◆ Function() [2/2]

cart::Function::Function ( uint  numArgs)
inline

Definition at line 12 of file Function.h.

◆ ~Function()

virtual cart::Function::~Function ( )
inlinevirtual

Definition at line 13 of file Function.h.

Member Function Documentation

◆ evaluate()

virtual void cart::Function::evaluate ( voidP  inputs,
void *  result 
)
pure virtual

Evaluate result with given inputs in one of implemented derived classes of Function class.

Implemented in cart::Add< T >, cart::And< T >, cart::Cos< T >, cart::Div< T >, cart::Mul< T >, cart::Not< T >, cart::Or< T >, cart::Sin< T >, cart::Sub< T >, cart::Xnor< T >, and cart::Xor< T >.

◆ getName()

string cart::Function::getName ( )
inline

Definition at line 20 of file Function.h.

◆ getNumOfArgs()

uint cart::Function::getNumOfArgs ( )
inline

Definition at line 25 of file Function.h.

Member Data Documentation

◆ name_

string cart::Function::name_
protected

Definition at line 31 of file Function.h.

◆ numOfArgs_

uint cart::Function::numOfArgs_
protected

Definition at line 32 of file Function.h.


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