Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Friends

FunctionCall Class Reference

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

#include <fnCall.h>

Inheritance diagram for FunctionCall:
ExprTree ExprTree

List of all members.

Public Types

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

Public Member Functions

 FunctionCall (FunctionCall &functioncall)
 Copy Constructor.
virtual ~FunctionCall ()
 Destructor.
FunctionCalloperator= (FunctionCall &functioncall)
void GetComponents (std::string &, std::vector< ExprTree * > &) const
virtual ExprTreeCopy () const
 Make a deep copy of the expression.
bool CopyFrom (const FunctionCall &functioncall)
virtual bool SameAs (const ExprTree *tree) const
 FunctionCall (FunctionCall &functioncall)
 Copy Constructor.
virtual ~FunctionCall ()
 Destructor.
FunctionCalloperator= (FunctionCall &functioncall)
void GetComponents (std::string &, std::vector< ExprTree * > &) const
virtual ExprTreeCopy () const
 Make a deep copy of the expression.
bool CopyFrom (const FunctionCall &functioncall)
virtual bool SameAs (const ExprTree *tree) const

Static Public Member Functions

static FunctionCallMakeFunctionCall (const std::string &fnName, std::vector< ExprTree * > &argList)
static void RegisterFunction (std::string &functionName, ClassAdFunc function)
static void RegisterFunctions (ClassAdFunctionMapping *functions)
static bool RegisterSharedLibraryFunctions (const char *shared_library_path)
static FunctionCallMakeFunctionCall (const std::string &fnName, std::vector< ExprTree * > &argList)
static void RegisterFunction (std::string &functionName, ClassAdFunc function)
static void RegisterFunctions (ClassAdFunctionMapping *functions)
static bool RegisterSharedLibraryFunctions (const char *shared_library_path)

Protected Types

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

Protected Member Functions

 FunctionCall ()
 Constructor.
 FunctionCall ()
 Constructor.

Friends

bool operator== (const FunctionCall &fn1, const FunctionCall &fn2)
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
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
static 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
static 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.

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 files:
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends