This class provides a way to register items and its object reference The registered items are accessible from any object (singleton pattern)
More...
#include <registration.hh>
|
void | add_item (const std::string &type, TItem *f) |
|
TItem * | get_item (const std::string &type) |
|
|
std::map< std::string, TItem * > | _items |
|
template<typename TItem>
class registration< TItem >
This class provides a way to register items and its object reference The registered items are accessible from any object (singleton pattern)
◆ registration()
◆ add_item()
template<typename TItem >
void registration< TItem >::add_item |
( |
const std::string & |
type, |
|
|
TItem * |
f |
|
) |
| |
◆ get_instance()
template<typename TItem >
◆ get_item()
template<typename TItem >
TItem * registration< TItem >::get_item |
( |
const std::string & |
type | ) |
|
◆ _instance
◆ _items
The documentation for this class was generated from the following file: