TorqueScript  0.2
Public Member Functions | Public Attributes | List of all members
TorqueScript::FunctionRegistry Struct Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FunctionRegistry()

TorqueScript::FunctionRegistry::FunctionRegistry ( const std::string &  package)
inline

Constructs a new FunctionRegistry instance.

Parameters
packageThe name of the package this registry is associated with.

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