Ardour  8.7-14-g57a6773833
Temporal::timecnt_t Class Reference

#include <timeline.h>

Public Member Functions

 timecnt_t ()
 
 timecnt_t (TimeDomain td)
 
 timecnt_t (timecnt_t const &other)
 
 timecnt_t (samplepos_t s, timepos_t const &pos)
 
 timecnt_t (samplepos_t s)
 
 timecnt_t (timepos_t const &d)
 
 timecnt_t (timepos_t const &d, timepos_t const &p)
 
 timecnt_t (timecnt_t const &, timepos_t const &pos)
 
 timecnt_t (int62_t d, timepos_t p)
 
 timecnt_t (Temporal::Beats const &b, timepos_t const &pos)
 
 timecnt_t (Temporal::Beats const &b)
 
int64_t magnitude () const
 
int62_t const & distance () const
 
timepos_t const & position () const
 
timepos_t end (TimeDomain) const
 
timepos_t end () const
 
void set_position (timepos_t const &pos)
 
bool is_positive () const
 
bool is_negative () const
 
bool is_zero () const
 
timecnt_t abs () const
 
Temporal::TimeDomain time_domain () const
 
void set_time_domain (Temporal::TimeDomain)
 
superclock_t superclocks () const
 
int64_t samples () const
 
Temporal::Beats beats () const
 
int64_t ticks () const
 
timecnt_toperator= (Temporal::Beats const &b)
 
timecnt_t operator++ ()
 
timecnt_t operator-- ()
 
timecnt_t scale (ratio_t const &) const
 
ratio_t operator/ (timecnt_t const &) const
 
timecnt_t operator- () const
 
timecnt_t operator- (timecnt_t const &t) const
 
timecnt_t operator+ (timecnt_t const &t) const
 
timecnt_t operator- (timepos_t const &t) const
 
timecnt_t operator+ (timepos_t const &t) const
 
timecnt_toperator-= (timecnt_t const &t)
 
timecnt_toperator+= (timecnt_t const &t)
 
timecnt_t decrement () const
 
timecnt_t increment () const
 
bool operator> (timecnt_t const &other) const
 
bool operator>= (timecnt_t const &other) const
 
bool operator< (timecnt_t const &other) const
 
bool operator<= (timecnt_t const &other) const
 
timecnt_toperator= (timecnt_t const &other)
 
bool operator!= (timecnt_t const &other) const
 
bool operator== (timecnt_t const &other) const
 
bool operator== (timepos_t const &other) const
 
bool operator< (Temporal::samplepos_t s)
 
bool operator< (Temporal::Beats const &b)
 
bool operator<= (Temporal::samplepos_t s)
 
bool operator<= (Temporal::Beats const &b)
 
bool operator> (Temporal::samplepos_t s)
 
bool operator> (Temporal::Beats const &b)
 
bool operator>= (Temporal::samplepos_t s)
 
bool operator>= (Temporal::Beats const &b)
 
bool operator== (Temporal::samplepos_t s)
 
bool operator== (Temporal::Beats const &b)
 
bool operator!= (Temporal::samplepos_t s)
 
bool operator!= (Temporal::Beats const &b)
 
timecnt_t operator% (timecnt_t const &) const
 
timecnt_toperator%= (timecnt_t const &)
 
bool string_to (std::string const &str)
 
std::string str () const
 

Static Public Member Functions

static timecnt_t zero (TimeDomain td)
 
static timecnt_t from_superclock (superclock_t s, timepos_t const &pos)
 
static timecnt_t from_ticks (int64_t ticks, timepos_t const &pos)
 
static timecnt_t from_superclock (superclock_t s)
 
static timecnt_t from_samples (samplepos_t s)
 
static timecnt_t from_ticks (int64_t ticks)
 
static timecnt_t const & max ()
 
static timecnt_t max (Temporal::TimeDomain td)
 

Private Member Functions

superclock_t compute_superclocks () const
 
Beats compute_beats () const
 
bool expensive_lt (timecnt_t const &other) const
 
bool expensive_lte (timecnt_t const &other) const
 
bool expensive_gt (timecnt_t const &other) const
 
bool expensive_gte (timecnt_t const &other) const
 

Private Attributes

int62_t _distance
 
timepos_t _position
 

Static Private Attributes

static timecnt_t _max_timecnt
 

Detailed Description

Definition at line 304 of file timeline.h.

Constructor & Destructor Documentation

◆ timecnt_t() [1/11]

Temporal::timecnt_t::timecnt_t ( )
inline

Definition at line 307 of file timeline.h.

◆ timecnt_t() [2/11]

Temporal::timecnt_t::timecnt_t ( TimeDomain  td)
inline

Definition at line 308 of file timeline.h.

◆ timecnt_t() [3/11]

Temporal::timecnt_t::timecnt_t ( timecnt_t const &  other)
inline

Definition at line 309 of file timeline.h.

◆ timecnt_t() [4/11]

Temporal::timecnt_t::timecnt_t ( samplepos_t  s,
timepos_t const &  pos 
)
explicit

◆ timecnt_t() [5/11]

Temporal::timecnt_t::timecnt_t ( samplepos_t  s)
explicit

◆ timecnt_t() [6/11]

Temporal::timecnt_t::timecnt_t ( timepos_t const &  d)
inlineexplicit

Definition at line 316 of file timeline.h.

◆ timecnt_t() [7/11]

Temporal::timecnt_t::timecnt_t ( timepos_t const &  d,
timepos_t const &  p 
)
inlineexplicit

Definition at line 317 of file timeline.h.

◆ timecnt_t() [8/11]

Temporal::timecnt_t::timecnt_t ( timecnt_t const &  ,
timepos_t const &  pos 
)
explicit

◆ timecnt_t() [9/11]

Temporal::timecnt_t::timecnt_t ( int62_t  d,
timepos_t  p 
)
inlineexplicit

Definition at line 321 of file timeline.h.

◆ timecnt_t() [10/11]

Temporal::timecnt_t::timecnt_t ( Temporal::Beats const &  b,
timepos_t const &  pos 
)
inlineexplicit

Definition at line 324 of file timeline.h.

◆ timecnt_t() [11/11]

Temporal::timecnt_t::timecnt_t ( Temporal::Beats const &  b)
inlineexplicit

Definition at line 335 of file timeline.h.

Member Function Documentation

◆ abs()

timecnt_t Temporal::timecnt_t::abs ( ) const

◆ beats()

Temporal::Beats Temporal::timecnt_t::beats ( ) const
inline

Definition at line 362 of file timeline.h.

◆ compute_beats()

Beats Temporal::timecnt_t::compute_beats ( ) const
private

◆ compute_superclocks()

superclock_t Temporal::timecnt_t::compute_superclocks ( ) const
private

◆ decrement()

timecnt_t Temporal::timecnt_t::decrement ( ) const
inline

Definition at line 396 of file timeline.h.

◆ distance()

int62_t const& Temporal::timecnt_t::distance ( ) const
inline

Definition at line 341 of file timeline.h.

◆ end() [1/2]

timepos_t Temporal::timecnt_t::end ( ) const
inline

Definition at line 344 of file timeline.h.

◆ end() [2/2]

timepos_t Temporal::timecnt_t::end ( TimeDomain  ) const

◆ expensive_gt()

bool Temporal::timecnt_t::expensive_gt ( timecnt_t const &  other) const
private

◆ expensive_gte()

bool Temporal::timecnt_t::expensive_gte ( timecnt_t const &  other) const
private

◆ expensive_lt()

bool Temporal::timecnt_t::expensive_lt ( timecnt_t const &  other) const
private

◆ expensive_lte()

bool Temporal::timecnt_t::expensive_lte ( timecnt_t const &  other) const
private

◆ from_samples()

static timecnt_t Temporal::timecnt_t::from_samples ( samplepos_t  s)
inlinestatic

Definition at line 337 of file timeline.h.

◆ from_superclock() [1/2]

static timecnt_t Temporal::timecnt_t::from_superclock ( superclock_t  s)
inlinestatic

Definition at line 336 of file timeline.h.

◆ from_superclock() [2/2]

static timecnt_t Temporal::timecnt_t::from_superclock ( superclock_t  s,
timepos_t const &  pos 
)
inlinestatic

Definition at line 331 of file timeline.h.

◆ from_ticks() [1/2]

static timecnt_t Temporal::timecnt_t::from_ticks ( int64_t  ticks)
inlinestatic

Definition at line 338 of file timeline.h.

◆ from_ticks() [2/2]

static timecnt_t Temporal::timecnt_t::from_ticks ( int64_t  ticks,
timepos_t const &  pos 
)
inlinestatic

Definition at line 332 of file timeline.h.

◆ increment()

timecnt_t Temporal::timecnt_t::increment ( ) const
inline

Definition at line 397 of file timeline.h.

◆ is_negative()

bool Temporal::timecnt_t::is_negative ( ) const
inline

Definition at line 349 of file timeline.h.

◆ is_positive()

bool Temporal::timecnt_t::is_positive ( ) const
inline

Definition at line 348 of file timeline.h.

◆ is_zero()

bool Temporal::timecnt_t::is_zero ( ) const
inline

Definition at line 350 of file timeline.h.

◆ magnitude()

int64_t Temporal::timecnt_t::magnitude ( ) const
inline

Definition at line 340 of file timeline.h.

◆ max() [1/2]

static timecnt_t const& Temporal::timecnt_t::max ( )
inlinestatic

Definition at line 352 of file timeline.h.

◆ max() [2/2]

static timecnt_t Temporal::timecnt_t::max ( Temporal::TimeDomain  td)
inlinestatic

Definition at line 353 of file timeline.h.

◆ operator!=() [1/3]

bool Temporal::timecnt_t::operator!= ( Temporal::Beats const &  b)
inline

Definition at line 436 of file timeline.h.

◆ operator!=() [2/3]

bool Temporal::timecnt_t::operator!= ( Temporal::samplepos_t  s)
inline

Definition at line 435 of file timeline.h.

◆ operator!=() [3/3]

bool Temporal::timecnt_t::operator!= ( timecnt_t const &  other) const
inline

Definition at line 417 of file timeline.h.

◆ operator%()

timecnt_t Temporal::timecnt_t::operator% ( timecnt_t const &  ) const

◆ operator%=()

timecnt_t& Temporal::timecnt_t::operator%= ( timecnt_t const &  )

◆ operator+() [1/2]

timecnt_t Temporal::timecnt_t::operator+ ( timecnt_t const &  t) const

◆ operator+() [2/2]

timecnt_t Temporal::timecnt_t::operator+ ( timepos_t const &  t) const

◆ operator++()

timecnt_t Temporal::timecnt_t::operator++ ( )
inline

Definition at line 370 of file timeline.h.

◆ operator+=()

timecnt_t& Temporal::timecnt_t::operator+= ( timecnt_t const &  t)

◆ operator-() [1/3]

timecnt_t Temporal::timecnt_t::operator- ( ) const

◆ operator-() [2/3]

timecnt_t Temporal::timecnt_t::operator- ( timecnt_t const &  t) const

◆ operator-() [3/3]

timecnt_t Temporal::timecnt_t::operator- ( timepos_t const &  t) const

◆ operator--()

timecnt_t Temporal::timecnt_t::operator-- ( )
inline

Definition at line 371 of file timeline.h.

◆ operator-=()

timecnt_t& Temporal::timecnt_t::operator-= ( timecnt_t const &  t)

◆ operator/()

ratio_t Temporal::timecnt_t::operator/ ( timecnt_t const &  ) const

◆ operator<() [1/3]

bool Temporal::timecnt_t::operator< ( Temporal::Beats const &  b)
inline

Definition at line 426 of file timeline.h.

◆ operator<() [2/3]

bool Temporal::timecnt_t::operator< ( Temporal::samplepos_t  s)
inline

Definition at line 425 of file timeline.h.

◆ operator<() [3/3]

bool Temporal::timecnt_t::operator< ( timecnt_t const &  other) const
inline

Definition at line 406 of file timeline.h.

◆ operator<=() [1/3]

bool Temporal::timecnt_t::operator<= ( Temporal::Beats const &  b)
inline

Definition at line 428 of file timeline.h.

◆ operator<=() [2/3]

bool Temporal::timecnt_t::operator<= ( Temporal::samplepos_t  s)
inline

Definition at line 427 of file timeline.h.

◆ operator<=() [3/3]

bool Temporal::timecnt_t::operator<= ( timecnt_t const &  other) const
inline

Definition at line 407 of file timeline.h.

◆ operator=() [1/2]

timecnt_t& Temporal::timecnt_t::operator= ( Temporal::Beats const &  b)
inline

Definition at line 365 of file timeline.h.

◆ operator=() [2/2]

timecnt_t& Temporal::timecnt_t::operator= ( timecnt_t const &  other)
inline

Definition at line 409 of file timeline.h.

◆ operator==() [1/4]

bool Temporal::timecnt_t::operator== ( Temporal::Beats const &  b)
inline

Definition at line 434 of file timeline.h.

◆ operator==() [2/4]

bool Temporal::timecnt_t::operator== ( Temporal::samplepos_t  s)
inline

Definition at line 433 of file timeline.h.

◆ operator==() [3/4]

bool Temporal::timecnt_t::operator== ( timecnt_t const &  other) const
inline

Definition at line 418 of file timeline.h.

◆ operator==() [4/4]

bool Temporal::timecnt_t::operator== ( timepos_t const &  other) const
inline

Definition at line 423 of file timeline.h.

◆ operator>() [1/3]

bool Temporal::timecnt_t::operator> ( Temporal::Beats const &  b)
inline

Definition at line 430 of file timeline.h.

◆ operator>() [2/3]

bool Temporal::timecnt_t::operator> ( Temporal::samplepos_t  s)
inline

Definition at line 429 of file timeline.h.

◆ operator>() [3/3]

bool Temporal::timecnt_t::operator> ( timecnt_t const &  other) const
inline

Definition at line 404 of file timeline.h.

◆ operator>=() [1/3]

bool Temporal::timecnt_t::operator>= ( Temporal::Beats const &  b)
inline

Definition at line 432 of file timeline.h.

◆ operator>=() [2/3]

bool Temporal::timecnt_t::operator>= ( Temporal::samplepos_t  s)
inline

Definition at line 431 of file timeline.h.

◆ operator>=() [3/3]

bool Temporal::timecnt_t::operator>= ( timecnt_t const &  other) const
inline

Definition at line 405 of file timeline.h.

◆ position()

timepos_t const& Temporal::timecnt_t::position ( ) const
inline

Definition at line 342 of file timeline.h.

◆ samples()

int64_t Temporal::timecnt_t::samples ( ) const
inline

Definition at line 361 of file timeline.h.

◆ scale()

timecnt_t Temporal::timecnt_t::scale ( ratio_t const &  ) const

◆ set_position()

void Temporal::timecnt_t::set_position ( timepos_t const &  pos)

◆ set_time_domain()

void Temporal::timecnt_t::set_time_domain ( Temporal::TimeDomain  )

◆ str()

std::string Temporal::timecnt_t::str ( ) const

◆ string_to()

bool Temporal::timecnt_t::string_to ( std::string const &  str)

◆ superclocks()

superclock_t Temporal::timecnt_t::superclocks ( ) const
inline

Definition at line 360 of file timeline.h.

◆ ticks()

int64_t Temporal::timecnt_t::ticks ( ) const
inline

Definition at line 363 of file timeline.h.

◆ time_domain()

Temporal::TimeDomain Temporal::timecnt_t::time_domain ( ) const
inline

Definition at line 357 of file timeline.h.

◆ zero()

static timecnt_t Temporal::timecnt_t::zero ( TimeDomain  td)
inlinestatic

Definition at line 326 of file timeline.h.

Member Data Documentation

◆ _distance

int62_t Temporal::timecnt_t::_distance
private

Definition at line 445 of file timeline.h.

◆ _max_timecnt

timecnt_t Temporal::timecnt_t::_max_timecnt
staticprivate

Definition at line 448 of file timeline.h.

◆ _position

timepos_t Temporal::timecnt_t::_position
private

Definition at line 446 of file timeline.h.


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