ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
ScriptInterface::Thermostat::Interface< CoreClass > Class Template Referenceabstract

#include <thermostat.hpp>

+ Inheritance diagram for ScriptInterface::Thermostat::Interface< CoreClass >:
+ Collaboration diagram for ScriptInterface::Thermostat::Interface< CoreClass >:

Public Types

using CoreThermostat = CoreClass
 

Public Member Functions

 Interface ()
 
virtual std::optional< doubleextract_kT (VariantMap const &params) const
 
auto release_lock ()
 
auto is_activated () const
 
virtual bool is_seed_required () const
 
auto get_rng_seed () const
 
auto get_rng_counter () const
 
void set_rng_seed (Variant const &value)
 
void set_rng_counter (Variant const &value)
 
void do_construct (VariantMap const &params) override
 
void update_and_bind (VariantMap const &params, bool was_active, std::shared_ptr<::System::System > system)
 
virtual ::ThermostatFlags get_thermo_flag () const =0
 
- Public Member Functions inherited from ScriptInterface::AutoParameters< Interface< 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
 
ObjectHandleoperator= (ObjectHandle const &)=delete
 
virtual ~ObjectHandle ()=default
 
boost::string_ref name () const
 
Contextcontext () const
 Responsible context.
 
void construct (VariantMap const &params)
 Construct the handled object.
 
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 &params)
 Call a method on the object.
 
std::string serialize () const
 

Protected Member Functions

void check_lock ()
 
void on_bind_system (::System::System &system) override
 
void on_detach_system (::System::System &system) override
 
void sanity_checks_positive (double value, std::string const &name) const
 
void sanity_checks_positive (Utils::Vector3d const &value, std::string const &name) const
 
virtual bool invalid_rng_state (VariantMap const &params) const
 
template<typename T >
auto make_autoparameter (T CoreThermostat::*member, char const *name)
 
template<typename T >
auto make_autogamma (T CoreThermostat::*member, char const *name)
 
virtual VariantMap extend_parameters (VariantMap const &parameters) const
 
Variant do_call_method (std::string const &name, VariantMap const &params) override
 
- Protected Member Functions inherited from ScriptInterface::AutoParameters< Interface< CoreClass >, System::Leaf >
 AutoParameters ()=default
 
 AutoParameters (std::vector< AutoParameter > &&params)
 
void add_parameters (std::vector< AutoParameter > &&params)
 
auto const & get_parameter_insertion_order () const
 
- Protected Member Functions inherited from ScriptInterface::System::Leaf
auto constget_system () const
 
autoget_system ()
 

Protected Attributes

bool is_active = false
 
std::shared_ptr< CoreThermostatm_handle
 
std::weak_ptr< boolm_edit_lock
 Basic lock mechanism that follows RAII.
 
- Protected Attributes inherited from ScriptInterface::System::Leaf
std::weak_ptr<::System::Systemm_system
 

Private Member Functions

virtual std::shared_ptr< CoreThermostat > & get_member_handle (::Thermostat::Thermostat &thermostat)=0
 

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<typename CoreClass>
class ScriptInterface::Thermostat::Interface< CoreClass >

Definition at line 43 of file script_interface/thermostat/thermostat.hpp.

Member Typedef Documentation

◆ CoreThermostat

template<typename CoreClass >
using ScriptInterface::Thermostat::Interface< CoreClass >::CoreThermostat = CoreClass

Definition at line 47 of file script_interface/thermostat/thermostat.hpp.

Constructor & Destructor Documentation

◆ Interface()

Member Function Documentation

◆ check_lock()

◆ do_call_method()

template<typename CoreClass >
Variant ScriptInterface::Thermostat::Interface< CoreClass >::do_call_method ( std::string const name,
VariantMap const params 
)
inlineoverrideprotectedvirtual

◆ do_construct()

◆ extend_parameters()

◆ extract_kT()

◆ get_member_handle()

◆ get_rng_counter()

◆ get_rng_seed()

◆ get_thermo_flag()

◆ invalid_rng_state()

◆ is_activated()

template<typename CoreClass >
auto ScriptInterface::Thermostat::Interface< CoreClass >::is_activated ( ) const
inline

◆ is_seed_required()

◆ make_autogamma()

◆ make_autoparameter()

◆ on_bind_system()

◆ on_detach_system()

◆ release_lock()

◆ sanity_checks_positive() [1/2]

◆ sanity_checks_positive() [2/2]

template<typename CoreClass >
void ScriptInterface::Thermostat::Interface< CoreClass >::sanity_checks_positive ( Utils::Vector3d const value,
std::string const name 
) const
inlineprotected

◆ set_rng_counter()

◆ set_rng_seed()

◆ update_and_bind()

Member Data Documentation

◆ is_active

◆ m_edit_lock

template<typename CoreClass >
std::weak_ptr<bool> ScriptInterface::Thermostat::Interface< CoreClass >::m_edit_lock
protected

◆ m_handle


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