![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Script interface wrapper for the system class. More...
#include <System.hpp>
Classes | |
| struct | Leaves |
| Container for leaves of the system class. More... | |
Public Member Functions | |
| System () | |
| ~System () override=default | |
| void | do_construct (VariantMap const ¶ms) override |
| Variant | do_call_method (std::string const &name, VariantMap const ¶meters) override |
| auto const & | get_system () const |
| Public Member Functions inherited from ScriptInterface::AutoParameters< System > | |
| 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::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 ¶ms) |
| Construct the handled object. | |
| 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 ¶ms) |
| Call a method on the object. | |
| std::string | serialize () const |
Private Member Functions | |
| std::string | get_internal_state () const override |
| Serialize particles. | |
| void | set_internal_state (std::string const &state) override |
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. | |
| Protected Member Functions inherited from ScriptInterface::AutoParameters< System > | |
| AutoParameters ()=default | |
| ~AutoParameters () override=default | |
| bool | has_parameter (std::string const &name) const override |
| void | add_parameters (std::vector< AutoParameter > &¶ms) |
| auto const & | get_parameter_insertion_order () const |
Script interface wrapper for the system class.
See System class design for more details.
Definition at line 38 of file script_interface/system/System.hpp.
| ScriptInterface::System::System::System | ( | ) |
Definition at line 149 of file script_interface/system/System.cpp.
References ScriptInterface::AutoParameters< System >::add_parameters(), and ScriptInterface::get_value().
Referenced by ScriptInterface::System::Leaf::on_bind_system(), and ScriptInterface::System::Leaf::on_detach_system().
|
overridedefault |
References ScriptInterface::ObjectHandle::name().
|
overridevirtual |
Reimplemented from ScriptInterface::ObjectHandle.
Definition at line 431 of file script_interface/system/System.cpp.
References Utils::Vector< double, N >::broadcast(), comm_cart, ScriptInterface::ObjectHandle::context(), coord(), do_call_method(), Utils::Mpi::gather_buffer(), get_system(), ScriptInterface::get_value(), Utils::hadamard_product(), System::is_same_system(), ScriptInterface::make_unordered_map_of_variants(), ScriptInterface::ObjectHandle::name(), propagation_flags_map(), System::reset_system(), ScriptInterface::System::rotate_system(), and ScriptInterface::System::system_created.
Referenced by do_call_method().
|
overridevirtual |
Reimplemented from ScriptInterface::ObjectHandle.
Definition at line 288 of file script_interface/system/System.cpp.
References ScriptInterface::ObjectHandle::call_method(), ScriptInterface::ObjectHandle::context(), System::System::create(), do_construct(), ScriptInterface::AutoParameters< System >::do_set_parameter(), ScriptInterface::AutoParameters< System >::get_parameter_insertion_order(), ScriptInterface::ObjectHandle::name(), NSQUARE, REGULAR, ScriptInterface::ObjectHandle::set_parameter(), System::set_system(), and ScriptInterface::System::system_created.
Referenced by do_construct().
|
overrideprivatevirtual |
Serialize particles.
Particles need to be serialized here to reduce overhead, and also to guarantee particles get instantiated after the cell structure was instantiated (since they store a weak pointer to it).
Reimplemented from ScriptInterface::ObjectHandle.
Definition at line 572 of file script_interface/system/System.cpp.
References get_internal_state(), get_particle_ids(), ScriptInterface::pack(), Utils::pack(), ScriptInterface::ObjectHandle::serialize(), and Utils::unpack().
Referenced by get_internal_state().
|
inline |
Definition at line 51 of file script_interface/system/System.hpp.
Referenced by do_call_method().
|
overrideprivatevirtual |
Reimplemented from ScriptInterface::ObjectHandle.
Definition at line 598 of file script_interface/system/System.cpp.
References ScriptInterface::ObjectHandle::context(), ScriptInterface::AutoParameters< System >::get_parameter(), get_particle_ids(), ScriptInterface::get_value(), ScriptInterface::ObjectHandle::name(), ScriptInterface::System::set_bonds(), ScriptInterface::System::set_exclusions(), set_internal_state(), ScriptInterface::unpack(), and Utils::unpack().
Referenced by set_internal_state().