Symphony Of Empires
|
#include <manager.hpp>
Public Member Functions | |
virtual std::shared_ptr< V > | load (const K &key) |
Load an element, this is the function that must be defined by the inheritor. More... | |
virtual const T & | get (const K &key) |
Obtain an element or construct a new one from a provided construct which accepts key. More... | |
Static Public Member Functions | |
static Manager< K, V > & | get_instance () |
Return the singleton. More... | |
Static Public Attributes | |
static Manager< K, V > * | singleton |
Global manager object. More... | |
Definition at line 33 of file manager.hpp.
|
inlinevirtual |
Obtain an element or construct a new one from a provided construct which accepts key.
Definition at line 49 of file manager.hpp.
|
inlinestatic |
Return the singleton.
Definition at line 40 of file manager.hpp.
|
inlinevirtual |
Load an element, this is the function that must be defined by the inheritor.
Definition at line 45 of file manager.hpp.
Global manager object.
Definition at line 37 of file manager.hpp.