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< double > extract_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 const & get_system () const
 
auto & get_system ()
 

Protected Attributes

bool is_active = false
 
std::shared_ptr< CoreThermostatm_handle
 
std::weak_ptr< bool > m_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
 
virtual std::span< std::string_view const > get_required_parameters () const =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 44 of file script_interface/thermostat/thermostat.hpp.

Member Typedef Documentation

◆ CoreThermostat

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

Definition at line 48 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()

template<typename CoreClass >
void ScriptInterface::Thermostat::Interface< CoreClass >::do_construct ( VariantMap const &  params)
inlineoverridevirtual

◆ extend_parameters()

◆ extract_kT()

template<typename CoreClass >
virtual std::optional< double > ScriptInterface::Thermostat::Interface< CoreClass >::extract_kT ( VariantMap const &  params) const
inlinevirtual

◆ get_member_handle()

◆ get_required_parameters()

◆ get_rng_counter()

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

◆ get_rng_seed()

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

◆ get_thermo_flag()

◆ invalid_rng_state()

template<typename CoreClass >
virtual bool ScriptInterface::Thermostat::Interface< CoreClass >::invalid_rng_state ( VariantMap const &  params) const
inlineprotectedvirtual

◆ 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()

template<typename CoreClass >
void ScriptInterface::Thermostat::Interface< CoreClass >::set_rng_seed ( Variant const &  value)
inline

◆ 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: