SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Types | Public Member Functions | Protected Attributes | List of all members
smtk::operation::Launchers Class Reference

A functor for executing operations and returning futures of the result. More...

#include <Launcher.h>

Collaboration diagram for smtk::operation::Launchers:
[legend]

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
 

Detailed Description

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.


The documentation for this class was generated from the following files: