SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A functor for executing operations and returning futures of the result. More...
#include <Launcher.h>
Public Types | |
typedef std::unordered_map< std::string, Launcher > | LauncherMap |
Public Member Functions | |
Launchers () | |
Construct a launcher that launches operations using an asynchronous thread by default. | |
Launchers (const LauncherMap::mapped_type &) | |
Construct a launcher that launches operations using a user-defined method by default. | |
std::pair< Launchers::LauncherMap::iterator, bool > | insert (const Launchers::LauncherMap::value_type &) |
Add a method for launching operations, paired with its associated key. | |
std::pair< Launchers::LauncherMap::iterator, bool > | emplace (Launchers::LauncherMap::value_type &&) |
Add a method for launching operations, paired with its associated key. | |
Launchers::LauncherMap::mapped_type & | operator[] (const Launchers::LauncherMap::key_type &) |
Access a method for launching operations via its associated key. | |
Launchers::LauncherMap::size_type | erase (const Launchers::LauncherMap::key_type &) |
Remove a method for launching operations via its associated key. | |
std::shared_future< Operation::Result > | operator() (const Operation::Ptr &) |
Launch an operation using the default launch method. | |
std::shared_future< Operation::Result > | operator() (const Operation::Ptr &, const Launchers::LauncherMap::key_type &) |
Launch an operation using the launch method associated to the input key. | |
Protected Attributes | |
LauncherMap | m_launchers |
A functor for executing operations and returning futures of the result.
Multiple launch types are supported and can be accessed using the LauncherMap's key.