45 std::shared_ptr<::Constraints::Constraints> m_handle;
46 std::unique_ptr<VariantMap> m_params;
49 return m_handle->contains(
obj_ptr->constraint());
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);
66 m_handle =
system.constraints;
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.
ObjectList< Constraint, AutoParameters< ObjectList< Constraint, System::Leaf >, System::Leaf > > Constraints_t
T get_value(Variant const &v)
Extract value of specific type T from a Variant.
std::unordered_map< std::string, Variant > VariantMap
static SteepestDescentParameters params
Currently active steepest descent instance.