ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
ScriptInterface::Dipoles::Actor< SIClass, CoreClass > Class Template Reference

Common interface for magnetostatic actors. More...

#include <Actor.hpp>

Inheritance diagram for ScriptInterface::Dipoles::Actor< SIClass, CoreClass >:
Collaboration diagram for ScriptInterface::Dipoles::Actor< SIClass, CoreClass >:

Public Member Functions

Variant do_call_method (std::string const &name, VariantMap const &params) 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::vector< std::string_view > 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
 ~Leaf () override=default
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
std::string_view name () const
Context * context () const
 Responsible context.
void construct (VariantMap const &params)
 Construct the handled object.
virtual void do_construct (VariantMap const &params)
VariantMap get_parameters () const
 Get current parameters.
void set_parameter (const std::string &name, const Variant &value)
 Set single parameter.
Variant call_method (const std::string &name, const VariantMap &params)
 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
auto const & get_system () const
auto & get_system ()
Protected Member Functions inherited from ScriptInterface::AutoParameters< Actor< SIClass, CoreClass >, System::Leaf >
 AutoParameters ()=default
 ~AutoParameters () override=default
bool has_parameter (std::string const &name) const override
void add_parameters (std::vector< AutoParameter > &&params)
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
std::weak_ptr<::System::System > m_system
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.

Detailed Description

template<class SIClass, class CoreClass>
class ScriptInterface::Dipoles::Actor< SIClass, CoreClass >

Common interface for magnetostatic actors.

Several methods are defined in initialize.cpp since they depend on symbols only available in dipoles.hpp, which cannot be included in this header file for separation of concerns reasons.

Definition at line 45 of file magnetostatics/Actor.hpp.

Member Typedef Documentation

◆ CoreActorClass

template<class SIClass, class CoreClass>
using ScriptInterface::Dipoles::Actor< SIClass, CoreClass >::CoreActorClass = CoreClass
protected

Definition at line 48 of file magnetostatics/Actor.hpp.

◆ ObjectClass

template<class SIClass, class CoreClass>
using ScriptInterface::Dipoles::Actor< SIClass, CoreClass >::ObjectClass = Actor<SIClass, CoreClass>
protected

Definition at line 49 of file magnetostatics/Actor.hpp.

◆ SIActorClass

template<class SIClass, class CoreClass>
using ScriptInterface::Dipoles::Actor< SIClass, CoreClass >::SIActorClass = SIClass
protected

Definition at line 47 of file magnetostatics/Actor.hpp.

Member Function Documentation

◆ actor() [1/2]

template<class SIClass, class CoreClass>
std::shared_ptr< CoreActorClass > ScriptInterface::Dipoles::Actor< SIClass, CoreClass >::actor ( )
inline

Definition at line 73 of file magnetostatics/Actor.hpp.

◆ actor() [2/2]

template<class SIClass, class CoreClass>
std::shared_ptr< CoreActorClass const > ScriptInterface::Dipoles::Actor< SIClass, CoreClass >::actor ( ) const
inline

Definition at line 74 of file magnetostatics/Actor.hpp.

◆ do_call_method()

template<class SIClass, class CoreClass>
Variant ScriptInterface::Dipoles::Actor< SIClass, CoreClass >::do_call_method ( std::string const & name,
VariantMap const & params )
overridevirtual

◆ get_system() [1/2]

template<class SIClass, class CoreClass>
auto & ScriptInterface::System::Leaf::get_system ( )
inlineprotected

Definition at line 59 of file script_interface/system/Leaf.hpp.

◆ get_system() [2/2]

template<class SIClass, class CoreClass>
auto const & ScriptInterface::System::Leaf::get_system ( ) const
inlineprotected

Definition at line 53 of file script_interface/system/Leaf.hpp.

Referenced by do_call_method().

◆ on_bind_system()

template<class SIClass, class CoreClass>
void ScriptInterface::Dipoles::Actor< SIClass, CoreClass >::on_bind_system ( ::System::System & )
inlineoverrideprotectedvirtual

Reimplemented from ScriptInterface::System::Leaf.

Reimplemented in ScriptInterface::Dipoles::DipolarLayerCorrection.

Definition at line 56 of file magnetostatics/Actor.hpp.

Member Data Documentation

◆ m_actor

template<class SIClass, class CoreClass>
std::shared_ptr<CoreActorClass> ScriptInterface::Dipoles::Actor< SIClass, CoreClass >::m_actor
protected

Definition at line 54 of file magnetostatics/Actor.hpp.

Referenced by do_call_method().

◆ m_system

template<class SIClass, class CoreClass>
std::weak_ptr<::System::System> ScriptInterface::System::Leaf::m_system
protected

Definition at line 51 of file script_interface/system/Leaf.hpp.

Referenced by do_call_method().


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