Lumiera  0.pre.03
»edit your freedom«
Policy< TI, SRC, TAR > Struct Template Reference

#include "lib/time/control-policy.hpp"

Description

template<class TI, class SRC, class TAR>
struct lib::time::mutation::Policy< TI, SRC, TAR >

Policy how to impose changes onto a connected target time value entity This policy will be parametrised with the concrete time entity types involved in the usage situation of time::Control.

The purpose of the policy is to bind a functor object to the concrete implementation of the value change applicable for this combination of types. This functor will then be stored within time::Control and invoked for each actual value change.

Parameters
TIthe nominal (interface) type of the change, propagated to listeners
SRCthe actual type of the change to be imposed
TARthe actual type of the target entity to receive the changes
Note
typically either SRC is identical to TI, or it is an time::Offset, or an int for nudging the target

Definition at line 295 of file control-policy.hpp.

Static Public Member Functions

static function< TI(SRC const &)> buildChangeHandler (TAR &target)
 
+ Collaboration diagram for Policy< TI, SRC, TAR >:

The documentation for this struct was generated from the following file: