Honeycomb  0.1
Component-Model Framework
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
honey::app::ModuleRegistry Struct Reference

List of application modules. More...

#include <Module.h>

Collaboration diagram for honey::app::ModuleRegistry:
Collaboration graph
[legend]

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::Ptrmodules
 

Detailed Description

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}));
See also
Module

Member Function Documentation

static honey::app::ModuleRegistry::mt_global ( ModuleRegistry  ,
inst   
)
static

Get singleton.

mt::Void honey::app::ModuleRegistry::reg ( const Module::Ptr module)

Register a module.

Member Data Documentation

unordered_map<Id, Module::Ptr> honey::app::ModuleRegistry::modules

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