43 std::shared_ptr<::Accumulators::AutoUpdateAccumulators> m_handle;
44 std::unique_ptr<VariantMap> m_params;
48 return m_handle->contains(
obj_ptr->accumulator().get());
52 m_handle->add(
obj_ptr->accumulator().get());
57 m_handle->remove(
obj_ptr->accumulator().get());
61 m_params = std::make_unique<VariantMap>(
params);
65 m_handle =
system.auto_update_accumulators;
66 m_handle->bind_system(m_system.lock());
void do_construct(VariantMap const ¶ms) override
bool has_in_core(std::shared_ptr< AccumulatorBase > const &obj_ptr) const override
void add_in_core(std::shared_ptr< AccumulatorBase > const &obj_ptr) override
void remove_in_core(std::shared_ptr< AccumulatorBase > const &obj_ptr) override
void on_bind_system(::System::System &system) override
Bind parameters in the script interface.
Owning list of ObjectHandles.
void do_construct(VariantMap const ¶ms) override
Script interface wrapper for a component of the system class.
ObjectList< AccumulatorBase, AutoParameters< ObjectList< AccumulatorBase, System::Leaf >, System::Leaf > > AutoUpdateAccumulators_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.