template<typename Property, class PropertyManager>
bn::by_template_action class

Modifies a property by a given delta.

Template parameters
Property Property to modify.
PropertyManager Reads and writes the property to modify.

Constructors, destructors, conversion operators

by_template_action(const Property& delta_property) protected explicit
Constructor.

Public functions

void reset()
Resets the property to its initial state.
void update()
Adds delta_property to the property.

Protected functions

auto delta_property() const -> const Property&
Returns how much to add to the property when the action is updated.

Function documentation

template<typename Property, class PropertyManager>
bn::by_template_action<Property, PropertyManager>::by_template_action(const Property& delta_property) explicit protected

Constructor.

Parameters
delta_property How much to add to the property when the action is updated.