ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
ScriptInterface::Shapes::Shape Class Referenceabstract

#include <Shape.hpp>

Inheritance diagram for ScriptInterface::Shapes::Shape:
Collaboration diagram for ScriptInterface::Shapes::Shape:

Public Member Functions

virtual std::shared_ptr<::Shapes::Shape > shape () const =0
 Return the Shape that we are wrapping.
Variant do_call_method (std::string const &name, VariantMap const &params) override
Public Member Functions inherited from ScriptInterface::AutoParameters< Shape >
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 &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

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< Shape >
 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

Detailed Description

Definition at line 39 of file script_interface/shapes/Shape.hpp.

Member Function Documentation

◆ do_call_method()

Variant ScriptInterface::Shapes::Shape::do_call_method ( std::string const & name,
VariantMap const & params )
inlineoverridevirtual

◆ shape()


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