ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Trivial context. More...
#include <LocalContext.hpp>
Public Member Functions | |
LocalContext (Utils::Factory< ObjectHandle > factory, boost::mpi::communicator const &comm) | |
const Utils::Factory< ObjectHandle > & | factory () const |
void | notify_call_method (const ObjectHandle *, std::string const &, VariantMap const &) override |
void | notify_set_parameter (const ObjectHandle *, std::string const &, Variant const &) override |
std::shared_ptr< ObjectHandle > | make_shared (std::string const &name, const VariantMap ¶meters) override |
std::shared_ptr< ObjectHandle > | make_shared_local (std::string const &name, VariantMap const ¶meters) override |
boost::string_ref | name (const ObjectHandle *o) const override |
bool | is_head_node () const override |
void | parallel_try_catch (std::function< void()> const &cb) const override |
boost::mpi::communicator const & | get_comm () const override |
Public Member Functions inherited from ScriptInterface::Context | |
virtual | ~Context ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from ScriptInterface::Context | |
void | set_context (ObjectHandle *o) |
Set the context of an object to this. | |
Trivial context.
This context just maintains a local copy of an object.
Definition at line 43 of file LocalContext.hpp.
|
inline |
Definition at line 50 of file LocalContext.hpp.
|
inline |
Definition at line 57 of file LocalContext.hpp.
Referenced by name().
|
inlineoverridevirtual |
Implements ScriptInterface::Context.
Definition at line 90 of file LocalContext.hpp.
|
inlineoverridevirtual |
Implements ScriptInterface::Context.
Definition at line 86 of file LocalContext.hpp.
|
inlineoverridevirtual |
Implements ScriptInterface::Context.
Definition at line 65 of file LocalContext.hpp.
References ScriptInterface::get_value(), Utils::Factory< T >::make(), name(), and ScriptInterface::Context::set_context().
Referenced by make_shared_local().
|
inlineoverridevirtual |
Implements ScriptInterface::Context.
Definition at line 75 of file LocalContext.hpp.
References ScriptInterface::get_value(), make_shared(), and name().
|
inlineoverridevirtual |
Implements ScriptInterface::Context.
Definition at line 80 of file LocalContext.hpp.
References factory(), and ScriptInterface::get_value().
Referenced by make_shared(), and make_shared_local().
|
inlineoverridevirtual |
Implements ScriptInterface::Context.
Definition at line 59 of file LocalContext.hpp.
|
inlineoverridevirtual |
Implements ScriptInterface::Context.
Definition at line 61 of file LocalContext.hpp.
|
inlineoverridevirtual |
Implements ScriptInterface::Context.
Definition at line 87 of file LocalContext.hpp.
References ScriptInterface::get_value(), and ScriptInterface::ParallelExceptionHandler::parallel_try_catch().