All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::da::FunctionCatalog Class Reference

A FunctionCatalog can be used to keep track of registered functions. More...

#include <FunctionCatalog.h>

Inheritance diagram for te::da::FunctionCatalog:

Public Member Functions

std::vector< FunctionDefn * > * find (const std::string &functionName) const
 It finds the function with the given name. More...
 
 FunctionCatalog ()
 Constructor. More...
 
void insert (FunctionDefn *fdfn)
 It inserts the function into the catalog. More...
 
 ~FunctionCatalog ()
 Destructor. More...
 

Private Attributes

std::map< std::string,
std::vector< FunctionDefn * > * > 
m_fMap
 Function map: function-name -> std::vector<FunctionDef*>*. More...
 

Detailed Description

A FunctionCatalog can be used to keep track of registered functions.

See also
FunctionDefn, FunctionCatalogManager

Definition at line 54 of file FunctionCatalog.h.

Constructor & Destructor Documentation

te::da::FunctionCatalog::FunctionCatalog ( )
inline

Constructor.

Parameters
nameThe parameter name.
tThe parameter type.

Definition at line 64 of file FunctionCatalog.h.

te::da::FunctionCatalog::~FunctionCatalog ( )

Destructor.

Definition at line 31 of file FunctionCatalog.cpp.

References te::common::FreeContents(), and m_fMap.

Member Function Documentation

std::vector< te::da::FunctionDefn * > * te::da::FunctionCatalog::find ( const std::string &  functionName) const

It finds the function with the given name.

Parameters
functionNameThe function name you are looking information for.
Returns
The list of functions with the given name. Remember, a function name may be overloaded. If none is found, return NULL.
Note
Don't delete the returned pointer, it belongs to the catalog!

Definition at line 60 of file FunctionCatalog.cpp.

References te::common::GetPValue().

void te::da::FunctionCatalog::insert ( FunctionDefn fdfn)

It inserts the function into the catalog.

Parameters
fdfnThe function definition. The catalog will take the ownership of the given pointer.

Definition at line 44 of file FunctionCatalog.cpp.

References te::da::FunctionDefn::getName().

Member Data Documentation

std::map<std::string, std::vector<FunctionDefn*>* > te::da::FunctionCatalog::m_fMap
private

Function map: function-name -> std::vector<FunctionDef*>*.

Definition at line 89 of file FunctionCatalog.h.

Referenced by ~FunctionCatalog().


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