ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Common interface for electrostatic actors. More...
#include <Actor.hpp>
Public Member Functions | |
Actor () | |
Variant | do_call_method (std::string const &name, VariantMap const ¶ms) override |
std::shared_ptr< CoreActorClass > | actor () |
std::shared_ptr< CoreActorClass const > | actor () const |
Public Member Functions inherited from ScriptInterface::AutoParameters< Actor< SIClass, CoreClass >, System::Leaf > | |
std::span< const boost::string_ref > | valid_parameters () const final |
Variant | get_parameter (const std::string &name) const final |
void | do_set_parameter (const std::string &name, const Variant &value) final |
std::vector< std::pair< std::string, Variant > > | serialize_parameters () const final |
Public Member Functions inherited from ScriptInterface::System::Leaf | |
void | bind_system (std::shared_ptr<::System::System > const &system) |
void | detach_system () |
Public Member Functions inherited from ScriptInterface::ObjectHandle | |
ObjectHandle ()=default | |
ObjectHandle (ObjectHandle const &)=delete | |
ObjectHandle & | operator= (ObjectHandle const &)=delete |
virtual | ~ObjectHandle ()=default |
boost::string_ref | name () const |
Context * | context () const |
Responsible context. | |
void | construct (VariantMap const ¶ms) |
Construct the handled object. | |
virtual void | do_construct (VariantMap const ¶ms) |
VariantMap | get_parameters () const |
Get current parameters. | |
auto | get_valid_parameters () const |
void | set_parameter (const std::string &name, const Variant &value) |
Set single parameter. | |
Variant | call_method (const std::string &name, const VariantMap ¶ms) |
Call a method on the object. | |
std::string | serialize () const |
Protected Types | |
using | SIActorClass = SIClass |
using | CoreActorClass = CoreClass |
using | ObjectClass = Actor< SIClass, CoreClass > |
Protected Member Functions | |
void | on_bind_system (::System::System &) override |
void | set_charge_neutrality_tolerance (VariantMap const ¶ms) |
Protected Member Functions inherited from ScriptInterface::AutoParameters< Actor< SIClass, CoreClass >, System::Leaf > | |
AutoParameters ()=default | |
AutoParameters (std::vector< AutoParameter > &¶ms) | |
void | add_parameters (std::vector< AutoParameter > &¶ms) |
auto const & | get_parameter_insertion_order () const |
Protected Member Functions inherited from ScriptInterface::System::Leaf | |
auto const & | get_system () const |
auto & | get_system () |
Protected Attributes | |
std::shared_ptr< CoreActorClass > | m_actor |
Protected Attributes inherited from ScriptInterface::System::Leaf | |
std::weak_ptr<::System::System > | m_system |
Additional Inherited Members | |
Static Public Member Functions inherited from ScriptInterface::ObjectHandle | |
static ObjectRef | deserialize (const std::string &state, Context &ctx) |
Make object from serialized state. | |
Common interface for electrostatic actors.
Several methods are defined in initialize.cpp since they depend on symbols only available in coulomb.hpp, which cannot be included in this header file for separation of concerns reasons.
Definition at line 45 of file electrostatics/Actor.hpp.
|
protected |
Definition at line 48 of file electrostatics/Actor.hpp.
|
protected |
Definition at line 49 of file electrostatics/Actor.hpp.
|
protected |
Definition at line 47 of file electrostatics/Actor.hpp.
ScriptInterface::Coulomb::Actor< SIClass, CoreClass >::Actor | ( | ) |
Definition at line 40 of file electrostatics/Actor.impl.hpp.
References ScriptInterface::AutoParameter::read_only.
|
inline |
Definition at line 67 of file electrostatics/Actor.hpp.
References ScriptInterface::Coulomb::Actor< SIClass, CoreClass >::m_actor.
|
inline |
Definition at line 68 of file electrostatics/Actor.hpp.
References ScriptInterface::Coulomb::Actor< SIClass, CoreClass >::m_actor.
|
overridevirtual |
Reimplemented from ScriptInterface::ObjectHandle.
Reimplemented in ScriptInterface::Coulomb::CoulombScafacos.
Definition at line 88 of file electrostatics/Actor.impl.hpp.
References add_actor(), and params.
Referenced by ScriptInterface::Coulomb::CoulombScafacos::do_call_method().
|
inlineoverrideprotectedvirtual |
Reimplemented from ScriptInterface::System::Leaf.
Definition at line 57 of file electrostatics/Actor.hpp.
References ScriptInterface::Coulomb::Actor< SIClass, CoreClass >::m_actor, and ScriptInterface::System::Leaf::m_system.
|
inlineprotected |
Definition at line 71 of file electrostatics/Actor.hpp.
References ScriptInterface::AutoParameters< Actor< SIClass, CoreClass >, System::Leaf >::do_set_parameter(), and params.
|
protected |