|
SObjectizer 5.8
|
A wrapped environment. More...
#include <wrapped_env.hpp>
Classes | |
| struct | details_t |
| Implementation details for wrapped_env. More... | |
Public Types | |
| enum class | wait_init_completion_t { sync } |
| Helper type to be used as indicator of synchronous mode. More... | |
Public Member Functions | |
| wrapped_env_t (const wrapped_env_t &)=delete | |
| wrapped_env_t (wrapped_env_t &&)=delete | |
| wrapped_env_t () | |
| Default constructor. | |
| wrapped_env_t (so_5::generic_simple_init_t init_func) | |
| A constructor which receives only initialization function. | |
| wrapped_env_t (so_5::generic_simple_init_t init_func, so_5::generic_simple_so_env_params_tuner_t params_tuner) | |
| A constructor which receives initialization function and a function for environment's params tuning. | |
| wrapped_env_t (so_5::generic_simple_init_t init_func, environment_params_t &¶ms) | |
| wrapped_env_t (wait_init_completion_t wait_init_completion_indicator, so_5::generic_simple_init_t init_func) | |
| A constructor for synchronous mode which receives only initialization function. | |
| wrapped_env_t (wait_init_completion_t wait_init_completion_indicator, so_5::generic_simple_init_t init_func, environment_params_t &¶ms) | |
| A constructor for synchronous mode which receives initialization function and already prepared environment's params. | |
| wrapped_env_t (wait_init_completion_t wait_init_completion_indicator, so_5::generic_simple_init_t init_func, so_5::generic_simple_so_env_params_tuner_t params_tuner) | |
| A constructor for synchronous mode which receives initialization function and a function for environment's params tuning. | |
| wrapped_env_t (environment_params_t &¶ms) | |
| A constructor which receives already prepared environment's params. | |
| ~wrapped_env_t () | |
| Destructor. | |
| environment_t & | environment () const |
| Access to wrapped environment. | |
| void | stop () |
| Send stop signal to environment. | |
| void | join () |
| Wait for complete finish of environment's work. | |
| void | stop_then_join () |
| Send stop signal and wait for complete finish of environment's work. | |
Static Public Attributes | |
| static constexpr wait_init_completion_t | wait_init_completion |
| Special indicator that tells that synchronous mode has to be used for calling init-function. | |
Private Member Functions | |
| wrapped_env_t (so_5::generic_simple_init_t init_func, environment_params_t &¶ms, wrapped_env_details::init_style_t init_style) | |
| The main initializing constructor. | |
Private Attributes | |
| std::unique_ptr< details_t > | m_impl |
| Implementation details. | |
A wrapped environment.
The wrapped_env_t may handle init-function (if it's passed to the constructor) in two modes:
Definition at line 288 of file wrapped_env.hpp.
|
strong |
Helper type to be used as indicator of synchronous mode.
| Enumerator | |
|---|---|
| sync | |
Definition at line 311 of file wrapped_env.hpp.
|
private |
The main initializing constructor.
All other constructors just delegate work to this constructor.
| init_func | Init-function to be called. |
| params | Parameters for SOEnv to be used. |
| init_style | Asynchronous or synchronous mode. |
Definition at line 320 of file wrapped_env.cpp.
|
delete |
|
delete |
| so_5::wrapped_env_t::wrapped_env_t | ( | ) |
Default constructor.
Starts environment without any initialization actions.
Definition at line 334 of file wrapped_env.cpp.
| so_5::wrapped_env_t::wrapped_env_t | ( | so_5::generic_simple_init_t | init_func | ) |
A constructor which receives only initialization function.
Default environment parameters will be used.
| init_func | Initialization function. |
Definition at line 338 of file wrapped_env.cpp.
| so_5::wrapped_env_t::wrapped_env_t | ( | so_5::generic_simple_init_t | init_func, |
| so_5::generic_simple_so_env_params_tuner_t | params_tuner ) |
A constructor which receives initialization function and a function for environment's params tuning.
| init_func | Initialization function. |
| params_tuner | Function for environment's params tuning. |
Definition at line 345 of file wrapped_env.cpp.
| so_5::wrapped_env_t::wrapped_env_t | ( | so_5::generic_simple_init_t | init_func, |
| environment_params_t && | params ) |
A constructor which receives initialization function and already prepared environment's params.
| init_func | Initialization function. |
| params | Environment's params. |
Definition at line 353 of file wrapped_env.cpp.
| so_5::wrapped_env_t::wrapped_env_t | ( | wait_init_completion_t | wait_init_completion_indicator, |
| so_5::generic_simple_init_t | init_func ) |
A constructor for synchronous mode which receives only initialization function.
Default environment parameters will be used.
| wait_init_completion_indicator | Indicator of the synchronous mode. |
| init_func | Initialization function. |
Definition at line 362 of file wrapped_env.cpp.
| so_5::wrapped_env_t::wrapped_env_t | ( | wait_init_completion_t | wait_init_completion_indicator, |
| so_5::generic_simple_init_t | init_func, | ||
| environment_params_t && | params ) |
A constructor for synchronous mode which receives initialization function and already prepared environment's params.
| wait_init_completion_indicator | Indicator of the synchronous mode. |
| init_func | Initialization function. |
| params | Environment's params. |
Definition at line 371 of file wrapped_env.cpp.
| so_5::wrapped_env_t::wrapped_env_t | ( | wait_init_completion_t | wait_init_completion_indicator, |
| so_5::generic_simple_init_t | init_func, | ||
| so_5::generic_simple_so_env_params_tuner_t | params_tuner ) |
A constructor for synchronous mode which receives initialization function and a function for environment's params tuning.
| init_func | Initialization function. |
| params_tuner | Function for environment's params tuning. |
Definition at line 381 of file wrapped_env.cpp.
| so_5::wrapped_env_t::wrapped_env_t | ( | environment_params_t && | params | ) |
A constructor which receives already prepared environment's params.
Usage example:
| params | Environment's params. |
Definition at line 391 of file wrapped_env.cpp.
| so_5::wrapped_env_t::~wrapped_env_t | ( | ) |
| environment_t & so_5::wrapped_env_t::environment | ( | ) | const |
Access to wrapped environment.
Definition at line 404 of file wrapped_env.cpp.
| void so_5::wrapped_env_t::join | ( | ) |
Wait for complete finish of environment's work.
Definition at line 416 of file wrapped_env.cpp.
| void so_5::wrapped_env_t::stop | ( | ) |
Send stop signal to environment.
Definition at line 410 of file wrapped_env.cpp.
| void so_5::wrapped_env_t::stop_then_join | ( | ) |
Send stop signal and wait for complete finish of environment's work.
Definition at line 422 of file wrapped_env.cpp.
|
private |
Implementation details.
Definition at line 492 of file wrapped_env.hpp.
|
staticconstexpr |
Special indicator that tells that synchronous mode has to be used for calling init-function.
Usage example:
Definition at line 328 of file wrapped_env.hpp.