Honeycomb
0.1
Component-Model Framework
|
List of application modules. More...
#include <Module.h>
Public Member Functions | |
mt::Void | reg (const Module::Ptr &module) |
Register a module. More... | |
Static Public Member Functions | |
static | mt_global (ModuleRegistry, inst,) |
Get singleton. More... | |
Public Attributes | |
unordered_map< Id, Module::Ptr > | modules |
List of application modules.
Register a module statically in a source file by calling:
static void myFunc(); static auto _ = app::ModuleRegistry::inst().reg(new app::Module("myName"_id, &myFunc, {"outDep"_id}, {"inDep"_id}));
|
static |
Get singleton.
mt::Void honey::app::ModuleRegistry::reg | ( | const Module::Ptr & | module | ) |
Register a module.
unordered_map<Id, Module::Ptr> honey::app::ModuleRegistry::modules |