![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "lib/time/timevalue.hpp"
Duration is the internal Lumiera time metric.
It is an absolute (positive) value, but can be promoted from an offset. While Duration generally is treated as immutable value, there is the possibility to send a Mutation message.
Definition at line 477 of file timevalue.hpp.
Static Public Attributes | |
| static const Duration | NIL {Time::ZERO} |
| constant to indicate "no duration" | |
| static const Duration | MAX |
| maximum possible temporal extension | |
Static Public Attributes inherited from TimeValue | |
| static const raw_time_64 | SCALE = 1'000'000 |
| Number of micro ticks (µs) per second as basic time scale. | |
Public Member Functions | |
| Duration () | |
| Duration (Offset const &distance) | |
| Duration (TimeValue const &timeSpec) | |
| Duration (FSecs const &timeSpan_in_secs) | |
| Duration (FrameCnt count, FrameRate const &fps) | |
| duration of the given number of frames. | |
| Duration (TimeSpan const &interval) | |
| Duration (Duration const &o) | |
| void | accept (Mutation const &) |
| operator std::string () const | |
| Offset | operator- () const |
| Supporting backwards use as offset. | |
Public Member Functions inherited from TimeValue | |
| TimeValue (raw_time_64 val) | |
| TimeValue (TimeValue const &o) | |
| copy initialisation allowed | |
| operator std::string () const | |
| bool | isRegular () const |
| std::strong_ordering | operator<=> (TimeValue const &) const =default |
| bool | operator== (TimeValue const &) const =default |
| std::strong_ordering | operator<=> (raw_time_64 tt) const |
| bool | operator== (raw_time_64 tt) const |
Private Member Functions | |
| Duration & | operator= (Duration const &) |
| direct assignment prohibited | |
Additional Inherited Members | |
Static Public Member Functions inherited from TimeValue | |
| static TimeValue | buildRaw_ (raw_time_64) |
Protected Member Functions inherited from TimeValue | |
| TimeValue & | operator= (TimeValue const &o) |
| Assigning of time values is not allowed, but derived classed might allow that. | |
| TimeValue (TimeValue const &origin, TimeValue const &target) | |
Static Protected Member Functions inherited from TimeValue | |
| static raw_time_64 | limitedTime (raw_time_64 raw) |
| explicit limit of allowed time range | |
| static raw_time_64 | limitedDelta (raw_time_64 origin, raw_time_64 target) |
| safe calculation of explicitly limited time offset | |
Protected Attributes inherited from TimeValue | |
| raw_time_64 | t_ |
| the raw (internal) time value used to implement the time types | |
|
inline |
Definition at line 484 of file timevalue.hpp.
Definition at line 488 of file timevalue.hpp.
Definition at line 493 of file timevalue.hpp.
Definition at line 497 of file timevalue.hpp.
duration of the given number of frames.
Definition at line 503 of file timevalue.hpp.
Definition at line 806 of file timevalue.hpp.
Definition at line 509 of file timevalue.hpp.
References TimeValue::t_.
|
inline |
Definition at line 122 of file mutation.hpp.
References Mutation::change().
Referenced by Response::globalLength(), TimeMutation_test::mutate_by_Increment(), TimeMutation_test::mutate_by_Offset(), TimeMutation_test::mutate_by_Value(), TimeMutation_test::mutate_quantised(), and Clip::setupLength().
Here is the call graph for this function:
Here is the caller graph for this function:
|
explicit |
diagnostics
|
inline |
Supporting backwards use as offset.
Definition at line 559 of file timevalue.hpp.
|
static |
constant to indicate "no duration"
Definition at line 515 of file timevalue.hpp.
Referenced by lib::time::test::anonymous_namespace{time-control-test.cpp}::____verify_notification(), Builder< TimeSpan, TAR >::buildChangedValue(), TimeValue_test::buildDuration(), Policy< Duration, typename disable_if< canReceiveDuration< TAR >, Duration >::type, TAR >::ignore_change_and_return_Zero(), and lib::time::operator-().
|
static |
maximum possible temporal extension
Definition at line 516 of file timevalue.hpp.
Referenced by QuantiserBasics_test::coverQuantisationCornerCases(), TimeValue::limitedDelta(), ZoomWindow_test::safeguard_extremeOffset(), ZoomWindow_test::safeguard_extremeTimePos(), ZoomWindow_test::safeguard_verySmall(), and TimeValue_test::verify_extremeValues().
Inheritance diagram for Duration:
Collaboration diagram for Duration: