Public Types |
Public Member Functions |
Static Public Member Functions |
Protected Types |
Protected Member Functions |
Protected Attributes |
Static Protected Attributes |
List of all members
faudes::FunctionRegistry Class Reference The FunctionRegistry registers faudes-functions. More...
Detailed DescriptionThe FunctionRegistry registers faudes-functions. A faudes-functions operates on faudes objects, eg the parallel composition of two generators is available as faudes-function. The registry maintains a mapping between function names and a coresponding function::Definition. The latter provides signatures, ie parameter types the function can take. The registry provides an interface to inspect TypeDefinitions or to construct function objects by their type name. Technical note: the class is implemented according to the "Singleton" design pattern, ie, only one global instance of the registry can exist. Definition at line 491 of file cfl_registry.h. Member Typedef Documentation
Convenience typedef to access registry entries. Definition at line 496 of file cfl_registry.h.
Convenience typedef to access registry entries. Definition at line 715 of file cfl_registry.h. Constructor & Destructor Documentation
Constructor. Definition at line 721 of file cfl_registry.h.
Destructor. Definition at line 724 of file cfl_registry.h. Member Function Documentation
STL interator to the internal function-name map.
Definition at line 426 of file cfl_registry.cpp.
Clear all registered function definitions. This will also delete the correponsing prototype objects. Reimplemented from faudes::Type. Definition at line 404 of file cfl_registry.cpp.
Look up the function definition by faudes-function name.
Definition at line 536 of file cfl_registry.cpp.
Look up the function definition by faudes object. Techcal note: this implementation is slow, we should use a function id map.
Definition at line 548 of file cfl_registry.cpp.
Write registry data of this to TokenWriter. Since the registry cannot reconfigure itself from a token stream, this output is informative only. However, MergeDocumentation will accept the format to insert/extract documentation.
Reimplemented from faudes::Type. Definition at line 580 of file cfl_registry.cpp.
STL interator to the internal function-name map.
Definition at line 431 of file cfl_registry.cpp.
Test existence of a faudes-function by its name.
Definition at line 569 of file cfl_registry.cpp.
Test existence of a faudes-function by faudes object.
Definition at line 574 of file cfl_registry.cpp.
Look up the function name by faudes object.
Definition at line 559 of file cfl_registry.cpp.
Method to access the single global instance of the registry. Definition at line 394 of file cfl_registry.cpp.
Add another function definition to the registry. The registry takes the ownership pf the provided function definition. It will be deleted either in Clear() or when the registry is destructed.
Definition at line 436 of file cfl_registry.cpp.
template<class T >
Register a faudes-function with specified function name. This is a convenience function: it uses the template parameter to construct the new instance of FunctionDefinition to be registered. However, no documentation is added. See also MergeDocumentation.
Definition at line 585 of file cfl_registry.h.
Scan token input for function documentation. This function scans the entire token stream for sections with label "FunctionDefinition". Any such section that refers to a function name which is known to the registry, will be applied to the corresponding registry entry.
Definition at line 465 of file cfl_registry.cpp.
Scan file for function documentation. Convenience method, see also MergeDocumentation(TokenReader& rTr)
Definition at line 498 of file cfl_registry.cpp.
Construct a faudes object by function name. Uses the internal prototype object to construct an object of the same c function on the heap.
Definition at line 505 of file cfl_registry.cpp. Construct a faudes object by protofunction object. Depreciated: use new on the faudes object instead.
Definition at line 523 of file cfl_registry.cpp.
Return number of registered function definitions.
Definition at line 421 of file cfl_registry.cpp. Member Data Documentation
Definition at line 730 of file cfl_registry.h.
Map to associate labels and faudes::FunctionDefinitions. Definition at line 729 of file cfl_registry.h.
Singleton instance. Definition at line 718 of file cfl_registry.h. The documentation for this class was generated from the following files: libFAUDES 2.24g --- 2014.09.15 --- c++ api documentaion by doxygen |