#include <vector>
#include <map>
#include <string>
#include "../util/Singleton.h"
#include "../debug/Logger.h"
Go to the source code of this file.
Namespaces | |
namespace | oasys |
Classes | |
class | oasys::InitSequencer |
class | oasys::InitStep |
class | oasys::InitConfigStep |
struct | oasys::InitExtraDependency |
Defines | |
#define | OASYS_DECLARE_INIT_MODULE(_namespace, _name, _num_dep, _args...) |
Declare an initialization module with _num_dep dependencies. | |
#define | OASYS_DECLARE_INIT_CONFIG(_namespace, _name) |
#define | OASYS_INIT_CONFIG_DONE(_namespace, _name) |
#define | OASYS_INIT_ADD_DEP(_new_dep, _depender) ::oasys::InitExtraDependency init_extra_dep_##__LINE__(_new_dep, _depender) |
#define | OASYS_DECLARE_INIT_MODULE_0(_namespace, _name) |
Prefer these macros to declaring the dependencies because they check the number of arguments passed to the decl. | |
#define | OASYS_DECLARE_INIT_MODULE_1(_namespace, _name, _dep1) OASYS_DECLARE_INIT_MODULE(_namespace, _name, 1, _dep1) |
Prefer these macros to declaring the dependencies because they check the number of arguments passed to the decl. | |
#define | OASYS_DECLARE_INIT_MODULE_2(_namespace, _name, _dep1, _dep2) OASYS_DECLARE_INIT_MODULE(_namespace, _name, 2, _dep1, _dep2) |
Prefer these macros to declaring the dependencies because they check the number of arguments passed to the decl. | |
#define | OASYS_DECLARE_INIT_MODULE_3(_namespace, _name, _dep1, _dep2, _dep3) OASYS_DECLARE_INIT_MODULE(_namespace, _name, 3, _dep1, _dep2, _dep3) |
Prefer these macros to declaring the dependencies because they check the number of arguments passed to the decl. | |
#define | OASYS_DECLARE_INIT_MODULE_4(_namespace, _name, _dep1, _dep2, _dep3, _dep4) OASYS_DECLARE_INIT_MODULE(_namespace, _name, 4, _dep1, _dep2, _dep3, _dep4) |
Prefer these macros to declaring the dependencies because they check the number of arguments passed to the decl. |
#define OASYS_DECLARE_INIT_CONFIG | ( | _namespace, | |||
_name | ) |
Value:
class InitModule##_namespace##_name : public InitConfigStep { \ public: \ InitModule##_namespace##_name() \ : InitConfigStep(#_namespace, #_name) {} \ }; \ InitModule##_namespace##_name * \ ::oasys::Singleton<InitModule##_namespace##_name>::instance_ = 0; \ InitModule##_namespace##_name * init_module_##_name = \ ::oasys::Singleton<InitModule##_namespace##_name>::instance()
Definition at line 281 of file InitSequencer.h.
#define OASYS_DECLARE_INIT_MODULE | ( | _namespace, | |||
_name, | |||||
_num_dep, | |||||
_args... | ) |
Value:
class InitModule##_namespace##_name : public ::oasys::InitStep { \ public: \ InitModule##_namespace##_name() \ : InitStep(#_namespace, #_name, _num_dep, _args) {} \ protected: \ int run_component(); \ }; \ InitModule##_namespace##_name * \ ::oasys::Singleton<InitModule##_namespace##_name>::instance_ = 0; \ InitModule##_namespace##_name * init_module_##_name = \ ::oasys::Singleton<InitModule##_namespace##_name>::instance(); \ int InitModule##_namespace##_name::run_component()
Use the above macros instead of
Definition at line 264 of file InitSequencer.h.
#define OASYS_DECLARE_INIT_MODULE_0 | ( | _namespace, | |||
_name | ) |
Value:
class InitModule##_namespace##_name : public ::oasys::InitStep { \ public: \ InitModule##_namespace##_name() : InitStep(#_namespace, #_name) {} \ protected: \ int run_component(); \ }; \ InitModule##_namespace##_name * \ ::oasys::Singleton<InitModule##_namespace##_name>::instance_ = 0; \ InitModule##_namespace##_name * init_module_##_name = \ ::oasys::Singleton<InitModule##_namespace##_name>::instance(); \ int InitModule##_namespace##_name::run_component()
Definition at line 237 of file InitSequencer.h.
#define OASYS_DECLARE_INIT_MODULE_1 | ( | _namespace, | |||
_name, | |||||
_dep1 | ) | OASYS_DECLARE_INIT_MODULE(_namespace, _name, 1, _dep1) |
Prefer these macros to declaring the dependencies because they check the number of arguments passed to the decl.
Definition at line 250 of file InitSequencer.h.
#define OASYS_DECLARE_INIT_MODULE_2 | ( | _namespace, | |||
_name, | |||||
_dep1, | |||||
_dep2 | ) | OASYS_DECLARE_INIT_MODULE(_namespace, _name, 2, _dep1, _dep2) |
Prefer these macros to declaring the dependencies because they check the number of arguments passed to the decl.
Definition at line 252 of file InitSequencer.h.
#define OASYS_DECLARE_INIT_MODULE_3 | ( | _namespace, | |||
_name, | |||||
_dep1, | |||||
_dep2, | |||||
_dep3 | ) | OASYS_DECLARE_INIT_MODULE(_namespace, _name, 3, _dep1, _dep2, _dep3) |
Prefer these macros to declaring the dependencies because they check the number of arguments passed to the decl.
Definition at line 254 of file InitSequencer.h.
#define OASYS_DECLARE_INIT_MODULE_4 | ( | _namespace, | |||
_name, | |||||
_dep1, | |||||
_dep2, | |||||
_dep3, | |||||
_dep4 | ) | OASYS_DECLARE_INIT_MODULE(_namespace, _name, 4, _dep1, _dep2, _dep3, _dep4) |
Prefer these macros to declaring the dependencies because they check the number of arguments passed to the decl.
Definition at line 256 of file InitSequencer.h.
#define OASYS_INIT_ADD_DEP | ( | _new_dep, | |||
_depender | ) | ::oasys::InitExtraDependency init_extra_dep_##__LINE__(_new_dep, _depender) |
Declare a new dependency to a pre-existing module
Definition at line 304 of file InitSequencer.h.
#define OASYS_INIT_CONFIG_DONE | ( | _namespace, | |||
_name | ) |
Value:
do { \ ::oasys::Singleton<InitModule##_namespace##_name>::instance() \ ->configuration_done(); \ } while (0)
Definition at line 295 of file InitSequencer.h.