43 std::shared_ptr<::Accumulators::AutoUpdateAccumulators> m_handle;
44 std::unique_ptr<VariantMap> m_params;
47 has_in_core(std::shared_ptr<AccumulatorBase>
const &obj_ptr)
const override {
48 return m_handle->contains(obj_ptr->accumulator().get());
51 void add_in_core(std::shared_ptr<AccumulatorBase>
const &obj_ptr)
override {
52 m_handle->add(obj_ptr->accumulator().get());
57 m_handle->remove(obj_ptr->accumulator().get());
61 m_params = std::make_unique<VariantMap>(
params);
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.
std::shared_ptr< Accumulators::AutoUpdateAccumulators > auto_update_accumulators
ObjectList< AccumulatorBase, AutoParameters< ObjectList< AccumulatorBase, System::Leaf >, System::Leaf > > AutoUpdateAccumulators_t
std::unordered_map< std::string, Variant > VariantMap
static SteepestDescentParameters params
Currently active steepest descent instance.