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.

Member Function Documentation

std::vector<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!
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.

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.


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