Lumiera  0.pre.03
»edit your freedom«
TimeVar Class Reference

#include "lib/time/timevalue.hpp"

Description

a mutable time value, behaving like a plain number, allowing copy and re-accessing

Note
supports scaling by a factor, which deliberately is chosen as int, not gavl_time_t, because the multiplying of times is meaningless.

Definition at line 238 of file timevalue.hpp.

Public Member Functions

 TimeVar (TimeValue const &time=TimeValue(0))
 
 TimeVar (FSecs const &)
 Allow to pick up precise fractional seconds. More...
 
 TimeVar (TimeVar const &o)
 Allowing copy and assignment.
 
 operator FSecs () const
 Support for micro-tick precise time arithmetics.
 
 operator gavl_time_t () const
 Support mixing with plain long int arithmetics.
 
TimeVaroperator*= (int64_t fact)
 Supporting multiplication with integral factor.
 
TimeVaroperator+= (TimeVar const &tx)
 Supporting additive.
 
TimeVar operator- () const
 Supporting sign flip.
 
TimeVaroperator-= (TimeVar const &tx)
 
TimeVaroperator= (TimeValue const &o)
 
- Public Member Functions inherited from TimeValue
 TimeValue (gavl_time_t val)
 
 TimeValue (TimeValue const &o)
 copy initialisation allowed
 
 operator std::string () const
 

Additional Inherited Members

- Static Public Member Functions inherited from TimeValue
static TimeValue buildRaw_ (gavl_time_t)
 
- Static Public Attributes inherited from TimeValue
static const gavl_time_t SCALE = GAVL_TIME_SCALE
 Number of micro ticks (µs) per second as basic time scale.
 
- Protected Member Functions inherited from TimeValue
 TimeValue (TimeValue const &origin, TimeValue const &target)
 
TimeValueoperator= (TimeValue const &o)
 Assigning of time values is not allowed, but derived classed might allow that.
 
- Static Protected Member Functions inherited from TimeValue
static gavl_time_t limitedDelta (gavl_time_t origin, gavl_time_t target)
 safe calculation of explicitly limited time offset
 
static gavl_time_t limitedTime (gavl_time_t raw)
 explicit limit of allowed time range More...
 
- Protected Attributes inherited from TimeValue
gavl_time_t t_
 the raw (internal) time value used to implement the time types
 

Constructor & Destructor Documentation

◆ TimeVar()

TimeVar ( FSecs const &  fractionalSeconds)
inline

Allow to pick up precise fractional seconds.

Warning
truncating fractional µ-ticks

Definition at line 773 of file timevalue.hpp.

+ Inheritance diagram for TimeVar:
+ Collaboration diagram for TimeVar:

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