Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/time/control-policy.hpp"
Policy to tie the various detail policies together for providing actual value change operations.
The standard case uses the (inherited) time::Mutation base implementation to impose a new value onto the target entity and then uses the Builder policy to create a notification value reflecting this change.
Definition at line 228 of file control-policy.hpp.
Static Public Member Functions | |
static TI | dontChange (TAR &target) |
static TI | mutateLength (TimeSpan &target, Duration const &change) |
static TimeSpan | mutateTimeSpan (TimeSpan &target, TimeSpan const &change) |
template<class SRC > | |
static TI | processValueChange (TAR &target, SRC const &change) |
static TI | useLengthAsChange (TAR &target, TimeSpan const &change) |
Static Public Member Functions inherited from Mutation | |
static EncapsulatedMutation | adjust (Offset) |
Convenience factory: simple Mutation to adjust the duration or length of a timespan. More... | |
static EncapsulatedMutation | changeDuration (Duration) |
Convenience factory: simple Mutation to adjust the duration or length of a timespan. More... | |
static EncapsulatedMutation | changeTime (Time) |
Convenience factory to yield a simple Mutation changing the absolute start time. More... | |
static EncapsulatedMutation | materialise (QuTime const &) |
Convenience factory: materialise the given quantised time into an explicit fixed internal time value, according to the underlying time grid; impose the resulting value then as new time point or start point to the target. More... | |
static EncapsulatedMutation | nudge (int adjustment) |
build a time mutation to nudge the target time value by an offset, defined as number of steps on an implicit nudge grid. More... | |
static EncapsulatedMutation | nudge (int adjustment, Symbol gridID) |
build a time mutation to nudge the target time value in steps based on a pre-defined grid. More... | |
Static Public Member Functions inherited from Builder< TI, TAR > | |
static TI | buildChangedValue (TAR const &target) |
Additional Inherited Members | |
Public Member Functions inherited from Mutation | |
virtual void | change (Duration &) const =0 |
virtual void | change (TimeSpan &) const =0 |
virtual void | change (QuTime &) const =0 |
Static Protected Member Functions inherited from Mutation | |
static TimeValue & | imposeChange (TimeValue &, TimeValue const &) |
static TimeValue & | imposeChange (TimeValue &, Offset const &) |
static TimeValue & | imposeChange (TimeValue &, int) |
static TimeValue & | imposeChange (QuTime &, int) |
|
inlinestatic |
change | standard case: plain value change |
Definition at line 235 of file control-policy.hpp.
|
inlinestatic |