ezconfig
Create C++ Objects from Yaml and Json
|
Utilities to define and maintain a global instance. More...
Go to the source code of this file.
Macros | |
#define | EZ_GLOBAL_DECLARE(...) |
Declare a template specialization of gInstance. | |
#define | EZ_GLOBAL_DEFINE(...) |
Define a template specialization of gInstance that returns the global instance. | |
#define | EZ_GLOBAL_INSTANCE(...) |
Retrieve the global instance for a type. | |
Functions | |
template<typename T > | |
T & | ezconfig::gInstance () |
Getter for global instances. | |
Utilities to define and maintain a global instance.
Definition in file global.hpp.
#define EZ_GLOBAL_DECLARE | ( | ... | ) |
Declare a template specialization of gInstance.
Use this in the '.hpp' file to declare a global instance getter for the class.
Definition at line 29 of file global.hpp.
#define EZ_GLOBAL_DEFINE | ( | ... | ) |
Define a template specialization of gInstance that returns the global instance.
Use this in the '.cpp' file to define a unique global instance for the class.
Definition at line 40 of file global.hpp.
#define EZ_GLOBAL_INSTANCE | ( | ... | ) |
Retrieve the global instance for a type.
Definition at line 52 of file global.hpp.
T & ezconfig::gInstance | ( | ) |
Getter for global instances.
Use the macros below to declare and define global instance getters.