template<typename TemporalType, typename TInstantType, typename BaseType>
TInstantFunctions struct
Contents
- Reference
This template class uses CRTP pattern and assumes the presence of the following function defined on the TemporalType class:
set<TInstantType> TemporalType::instants() const
where TemporalType == a class extending Temporal<BaseType> and TInstantType == TInstant<BaseType>
Public functions
- auto numInstants() const -> size_t
- Number of distinct instants.
- auto startInstant() const -> TInstantType
- Start instant, irrespective of whether the bounds are inclusive or not.
- auto endInstant() const -> TInstantType
- End instant, irrespective of whether the bounds are inclusive or not.
- auto instantN(size_t n) const -> TInstantType
- N-th distinct instant, irrespective of whether the bounds are inclusive or not.
- auto startValue() const -> BaseType
- Start value, irrespective of whether the bounds are inclusive or not.
- auto endValue() const -> BaseType
- End value, irrespective of whether the bounds are inclusive or not.
- auto valueN(size_t n) const -> BaseType
- N-th value, irrespective of whether the bounds are inclusive or not.