|
TorqueScript
0.2
|
A FunctionRegistry is used to keep track of registered functions in memory by the packages they are associated with. More...
#include <functionregistry.hpp>
Public Member Functions | |
| FunctionRegistry (const std::string &package) | |
| Constructs a new FunctionRegistry instance. More... | |
Public Attributes | |
| std::string | mPackageName |
| The package this registry belongs to. | |
| bool | mActive |
| Whether or not the registry is currently active. | |
| std::unordered_map< std::string, std::unordered_map< std::string, std::shared_ptr< Function > > > | mFunctions |
| A mapping of function namespaces to a mapping of function names to the function object. | |
A FunctionRegistry is used to keep track of registered functions in memory by the packages they are associated with.
A FunctionRegistry effectively is a 'package' for registered functions to reside in. The "" package is the root level package everything is registered to if no package is otherwise set.
|
inline |
Constructs a new FunctionRegistry instance.
| package | The name of the package this registry is associated with. |