A FunctionCatalog can be used to keep track of registered functions. More...
#include <FunctionCatalog.h>
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... | |
A FunctionCatalog can be used to keep track of registered functions.
Definition at line 54 of file FunctionCatalog.h.
|
inline |
Constructor.
name | The parameter name. |
t | The 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.
std::vector< te::da::FunctionDefn * > * te::da::FunctionCatalog::find | ( | const std::string & | functionName | ) | const |
It finds the function with the given name.
functionName | The function name you are looking information for. |
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.
fdfn | The 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().
|
private |
Function map: function-name -> std::vector<FunctionDef*>*.
Definition at line 89 of file FunctionCatalog.h.
Referenced by ~FunctionCatalog().