45 std::shared_ptr<::Constraints::Constraints> m_handle;
46 std::unique_ptr<VariantMap> m_params;
48 bool has_in_core(std::shared_ptr<Constraint>
const &obj_ptr)
const override {
49 return m_handle->contains(obj_ptr->constraint());
51 void add_in_core(std::shared_ptr<Constraint>
const &obj_ptr)
override {
52 m_handle->add(obj_ptr->constraint());
53 obj_ptr->bind_system(m_system.lock());
56 m_handle->remove(obj_ptr->constraint());
60 m_handle = std::make_shared<::Constraints::Constraints>();
62 m_params = std::make_unique<VariantMap>(
params);
67 m_handle->bind_system(m_system.lock());
void add_in_core(std::shared_ptr< Constraint > const &obj_ptr) override
void remove_in_core(std::shared_ptr< Constraint > const &obj_ptr) override
void on_bind_system(::System::System &system) override
void do_construct(VariantMap const ¶ms) override
bool has_in_core(std::shared_ptr< Constraint > const &obj_ptr) const override
Owning list of ObjectHandles.
void do_construct(VariantMap const ¶ms) override
Script interface wrapper for a component of the system class.
std::shared_ptr< Constraints::Constraints > constraints
ObjectList< Constraint, AutoParameters< ObjectList< Constraint, System::Leaf >, System::Leaf > > Constraints_t
std::unordered_map< std::string, Variant > VariantMap
static SteepestDescentParameters params
Currently active steepest descent instance.