Main Page | Class Hierarchy | Class List | File List | Class Members

FunctionCall Class Reference

Node of the expression which represents a call to an function. More...

#include <fnCall.h>

Inheritance diagram for FunctionCall:

Inheritance graph
[legend]
Collaboration diagram for FunctionCall:

Collaboration graph
[legend]
List of all members.

Public Types

typedef bool(* ClassAdFunc )(const char *, const ArgumentList &, EvalState &, Value &)

Public Member Functions

 FunctionCall (FunctionCall &functioncall)
 Copy Constructor.

 ~FunctionCall ()
 Destructor.

FunctionCalloperator= (FunctionCall &functioncall)
void GetComponents (std::string &, std::vector< ExprTree * > &) const
 Deconstructor to get the components of a function call.

virtual ExprTreeCopy () const
 Make a deep copy of the expression.

bool CopyFrom (const FunctionCall &functioncall)
virtual bool SameAs (const ExprTree *tree) const
 Is this ExprTree the same as the tree?


Static Public Member Functions

FunctionCallMakeFunctionCall (const std::string &fnName, std::vector< ExprTree * > &argList)
 Factory method to make a function call expression.

void RegisterFunction (std::string &functionName, ClassAdFunc function)
void RegisterFunctions (ClassAdFunctionMapping *functions)

Protected Types

typedef std::map< std::string,
void *, CaseIgnLTStr > 
FuncTable

Protected Member Functions

 FunctionCall ()
 Constructor.


Friends

bool operator== (const FunctionCall &fn1, const FunctionCall &fn2)

Detailed Description

Node of the expression which represents a call to an function.


Member Function Documentation

void FunctionCall::GetComponents std::string &  ,
std::vector< ExprTree * > & 
const
 

Deconstructor to get the components of a function call.

Parameters:
fnName The name of the function being called
argList The argument list

FunctionCall* FunctionCall::MakeFunctionCall const std::string &  fnName,
std::vector< ExprTree * > &  argList
[static]
 

Factory method to make a function call expression.

Parameters:
fnName The name of the function to be called
argList A vector representing the argument list
Returns:
The constructed function call expression

virtual bool FunctionCall::SameAs const ExprTree tree  )  const [virtual]
 

Is this ExprTree the same as the tree?

Returns:
true if it is the same, false otherwise

Implements ExprTree.


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