![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <NonBondedInteraction.hpp>
Public Types | |
| using | CoreInteraction = CoreIA |
| using | CoreInteractionIAParamsPtr = CoreInteraction IA_parameters::* |
Public Member Functions | |
| Variant | do_call_method (std::string const &name, VariantMap const ¶ms) override |
| void | do_construct (VariantMap const ¶ms) final |
| void | attach (std::weak_ptr< NonBondedInteractionHandle * > si_struct, std::weak_ptr<::IA_parameters > core_struct) |
| void | update_core (bool notify=true) |
| Public Member Functions inherited from ScriptInterface::AutoParameters< InteractionPotentialInterface< CoreIA > > | |
| 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 |
Protected Types | |
| using | BaseClass = AutoParameters<InteractionPotentialInterface<CoreIA>> |
Protected Member Functions | |
| virtual CoreInteractionIAParamsPtr | get_ptr_offset () const =0 |
| Pointer to the corresponding member in a handle. | |
| virtual void | make_new_instance (VariantMap const ¶ms)=0 |
| Create a new instance using the constructor with range checks. | |
| virtual std::string | inactive_parameter () const |
| Which parameter indicates whether the potential is inactive. | |
| virtual double | get_inactive_cutoff () const |
| Which magic value indicates the potential is inactive. | |
| template<typename T> | |
| auto | make_autoparameter (T CoreInteraction::*ptr, char const *name) |
| std::set< std::string > | get_valid_parameters () const |
| std::vector< std::string_view > | valid_parameters () const final |
| Protected Member Functions inherited from ScriptInterface::AutoParameters< InteractionPotentialInterface< CoreIA > > | |
| AutoParameters ()=default | |
| AutoParameters (std::vector< AutoParameter > &¶ms) | |
| ~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 |
Protected Attributes | |
| std::shared_ptr< CoreInteraction > | m_handle |
| Managed object. | |
| std::weak_ptr<::IA_parameters > | m_core_struct |
| Handle to the container whose members have to be synchronized. | |
| std::weak_ptr< NonBondedInteractionHandle * > | m_si_struct |
| Handle to the interface used to synchronize data members. | |
| std::weak_ptr< std::function< void()> > | m_notify_non_bonded_ia_change |
| Callback to notify changes to the interaction range. | |
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. | |
Definition at line 53 of file NonBondedInteraction.hpp.
|
protected |
Definition at line 60 of file NonBondedInteraction.hpp.
| using ScriptInterface::Interactions::InteractionPotentialInterface< CoreIA >::CoreInteraction = CoreIA |
Definition at line 56 of file NonBondedInteraction.hpp.
| using ScriptInterface::Interactions::InteractionPotentialInterface< CoreIA >::CoreInteractionIAParamsPtr = CoreInteraction IA_parameters::* |
Definition at line 57 of file NonBondedInteraction.hpp.
|
inline |
Definition at line 144 of file NonBondedInteraction.hpp.
References m_core_struct, and m_si_struct.
|
inlineoverridevirtual |
Reimplemented from ScriptInterface::ObjectHandle.
Reimplemented in ScriptInterface::Interactions::InteractionTabulated, and ScriptInterface::Interactions::InteractionWCA.
Definition at line 108 of file NonBondedInteraction.hpp.
References ScriptInterface::ObjectHandle::context(), ScriptInterface::get_value_or(), m_handle, make_new_instance(), ScriptInterface::ObjectHandle::name(), ScriptInterface::Context::parallel_try_catch(), and update_core().
Referenced by ScriptInterface::Interactions::InteractionLJcos2::do_call_method(), ScriptInterface::Interactions::InteractionTabulated::do_call_method(), and ScriptInterface::Interactions::InteractionWCA::do_call_method().
|
inlinefinalvirtual |
Reimplemented from ScriptInterface::ObjectHandle.
Definition at line 128 of file NonBondedInteraction.hpp.
References ScriptInterface::ObjectHandle::context(), get_inactive_cutoff(), ScriptInterface::get_value(), inactive_parameter(), m_handle, make_new_instance(), and ScriptInterface::Context::parallel_try_catch().
|
inlineprotectedvirtual |
Which magic value indicates the potential is inactive.
Reimplemented in ScriptInterface::Interactions::InteractionLJcos2, ScriptInterface::Interactions::InteractionThole, and ScriptInterface::Interactions::InteractionWCA.
Definition at line 79 of file NonBondedInteraction.hpp.
References inactive_cutoff.
Referenced by do_construct().
|
protectedpure virtual |
Pointer to the corresponding member in a handle.
Implemented in ScriptInterface::Interactions::InteractionBMHTF, ScriptInterface::Interactions::InteractionBuckingham, ScriptInterface::Interactions::InteractionDPD, ScriptInterface::Interactions::InteractionGaussian, ScriptInterface::Interactions::InteractionGayBerne, ScriptInterface::Interactions::InteractionHat, ScriptInterface::Interactions::InteractionHertzian, ScriptInterface::Interactions::InteractionLJ, ScriptInterface::Interactions::InteractionLJcos2, ScriptInterface::Interactions::InteractionLJcos, ScriptInterface::Interactions::InteractionLJGen, ScriptInterface::Interactions::InteractionMorse, ScriptInterface::Interactions::InteractionSmoothStep, ScriptInterface::Interactions::InteractionSoftSphere, ScriptInterface::Interactions::InteractionTabulated, ScriptInterface::Interactions::InteractionThole, and ScriptInterface::Interactions::InteractionWCA.
Referenced by update_core().
|
inlineprotected |
Definition at line 87 of file NonBondedInteraction.hpp.
References valid_parameters().
|
inlineprotectedvirtual |
Which parameter indicates whether the potential is inactive.
Reimplemented in ScriptInterface::Interactions::InteractionDPD, ScriptInterface::Interactions::InteractionGayBerne, ScriptInterface::Interactions::InteractionHertzian, ScriptInterface::Interactions::InteractionLJcos2, ScriptInterface::Interactions::InteractionTabulated, ScriptInterface::Interactions::InteractionThole, and ScriptInterface::Interactions::InteractionWCA.
Definition at line 77 of file NonBondedInteraction.hpp.
Referenced by do_construct().
|
inlineprotected |
Definition at line 82 of file NonBondedInteraction.hpp.
References m_handle, ScriptInterface::ObjectHandle::name(), and ScriptInterface::AutoParameter::read_only.
|
protectedpure virtual |
Create a new instance using the constructor with range checks.
Implemented in ScriptInterface::Interactions::InteractionBMHTF, ScriptInterface::Interactions::InteractionBuckingham, ScriptInterface::Interactions::InteractionDPD, ScriptInterface::Interactions::InteractionGaussian, ScriptInterface::Interactions::InteractionGayBerne, ScriptInterface::Interactions::InteractionHat, ScriptInterface::Interactions::InteractionHertzian, ScriptInterface::Interactions::InteractionLJ, ScriptInterface::Interactions::InteractionLJcos2, ScriptInterface::Interactions::InteractionLJcos, ScriptInterface::Interactions::InteractionLJGen, ScriptInterface::Interactions::InteractionMorse, ScriptInterface::Interactions::InteractionSmoothStep, ScriptInterface::Interactions::InteractionSoftSphere, ScriptInterface::Interactions::InteractionTabulated, ScriptInterface::Interactions::InteractionThole, and ScriptInterface::Interactions::InteractionWCA.
Referenced by do_call_method(), and do_construct().
| void ScriptInterface::Interactions::InteractionPotentialInterface< CoreIA >::update_core | ( | bool | notify = true | ) |
Definition at line 900 of file NonBondedInteraction.hpp.
References get_ptr_offset(), m_core_struct, m_handle, and m_si_struct.
Referenced by do_call_method().
|
inlinefinalprotectedvirtual |
Reimplemented from ScriptInterface::AutoParameters< InteractionPotentialInterface< CoreIA > >.
Definition at line 141 of file AutoParameters.hpp.
Referenced by get_valid_parameters().
|
protected |
Handle to the container whose members have to be synchronized.
Definition at line 67 of file NonBondedInteraction.hpp.
Referenced by attach(), and update_core().
|
protected |
Managed object.
Definition at line 65 of file NonBondedInteraction.hpp.
Referenced by do_call_method(), do_construct(), make_autoparameter(), and update_core().
|
protected |
Callback to notify changes to the interaction range.
Definition at line 71 of file NonBondedInteraction.hpp.
|
protected |
Handle to the interface used to synchronize data members.
Definition at line 69 of file NonBondedInteraction.hpp.
Referenced by attach(), and update_core().