Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
inexor::util::Subsystem::Register Class Reference

#include <Subsystem.hpp>

Inheritance diagram for inexor::util::Subsystem::Register:

Static Public Member Functions

static RegisterGetInstance ()
 
static bool Exist (const std::string &k)
 Check if the given subsystem exists. More...
 
static void EnsureExist (const std::string &k)
 Ensure that the given subsystem exists. More...
 
static StarterGet (const std::string &k)
 
static void Set (const std::string &k, Starter v)
 Thats an alias for setting a k/v pair in the map. More...
 

Public Attributes

keys
 STL member. More...
 
elements
 STL member. More...
 

Private Member Functions

 Register ()
 
 Register (Register const &)=delete
 
void operator= (Register const &)=delete
 

Constructor & Destructor Documentation

inexor::util::Subsystem::Register::Register ( )
inlineprivate
inexor::util::Subsystem::Register::Register ( Register const &  )
privatedelete

Member Function Documentation

static void inexor::util::Subsystem::Register::EnsureExist ( const std::string k)
inlinestatic

Ensure that the given subsystem exists.

If it does not, throws an exception.

References Exist().

Referenced by inexor::util::Metasystem::start(), and inexor::util::Metasystem::stop().

static bool inexor::util::Subsystem::Register::Exist ( const std::string k)
inlinestatic

Check if the given subsystem exists.

References GetInstance().

Referenced by EnsureExist().

static Starter& inexor::util::Subsystem::Register::Get ( const std::string k)
inlinestatic
static Register& inexor::util::Subsystem::Register::GetInstance ( )
inlinestatic

Referenced by Exist(), Get(), and Set().

void inexor::util::Subsystem::Register::operator= ( Register const &  )
privatedelete
static void inexor::util::Subsystem::Register::Set ( const std::string k,
Starter  v 
)
inlinestatic

Thats an alias for setting a k/v pair in the map.

Returns
Always 0. (In order so we can use that in SUBSYSTEM_REGISTER with a dummy variable).

References GetInstance().

Member Data Documentation

T std::unordered_map< K, T >::elements
inherited

STL member.

K std::unordered_map< K, T >::keys
inherited

STL member.


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