Ardour  9.0-pre0-582-g084a23a80d
Temporal::Range Class Reference

#include <range.h>

Inheritance diagram for Temporal::Range:
[legend]

Public Member Functions

 Range (timepos_t const &s, timepos_t const &e)
 
 Range (samplepos_t const s, samplepos_t const e)
 
bool empty () const
 
timecnt_t length () const
 
RangeList subtract (RangeList &) const
 
void set_start (timepos_t s)
 
void set_end (timepos_t e)
 
timepos_t start () const
 
timepos_t end () const
 
bool operator== (Range const &other) const
 
void force_to_samples ()
 
timepos_t squish (timepos_t const &t) const
 
OverlapType coverage (timepos_t const &s, timepos_t const &e) const
 
void dump (std::ostream &ostr) const
 

Private Attributes

timepos_t _start
 start of the range More...
 
timepos_t _end
 end of the range (exclusive, see above) More...
 

Detailed Description

Definition at line 138 of file temporal/temporal/range.h.

Constructor & Destructor Documentation

◆ Range() [1/2]

Temporal::Range::Range ( timepos_t const &  s,
timepos_t const &  e 
)
inline

Definition at line 152 of file temporal/temporal/range.h.

◆ Range() [2/2]

Temporal::Range::Range ( samplepos_t const  s,
samplepos_t const  e 
)
inline

Definition at line 153 of file temporal/temporal/range.h.

Member Function Documentation

◆ coverage()

OverlapType Temporal::Range::coverage ( timepos_t const &  s,
timepos_t const &  e 
) const
inline

Definition at line 186 of file temporal/temporal/range.h.

◆ dump()

void Temporal::Range::dump ( std::ostream &  ostr) const
inline

Definition at line 190 of file temporal/temporal/range.h.

◆ empty()

bool Temporal::Range::empty ( ) const
inline

Definition at line 154 of file temporal/temporal/range.h.

◆ end()

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

Definition at line 168 of file temporal/temporal/range.h.

◆ force_to_samples()

void Temporal::Range::force_to_samples ( )
inline

Definition at line 174 of file temporal/temporal/range.h.

◆ length()

timecnt_t Temporal::Range::length ( ) const
inline

Definition at line 160 of file temporal/temporal/range.h.

◆ operator==()

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

Definition at line 170 of file temporal/temporal/range.h.

◆ set_end()

void Temporal::Range::set_end ( timepos_t  e)
inline

Definition at line 165 of file temporal/temporal/range.h.

◆ set_start()

void Temporal::Range::set_start ( timepos_t  s)
inline

Definition at line 164 of file temporal/temporal/range.h.

◆ squish()

timepos_t Temporal::Range::squish ( timepos_t const &  t) const

for a T, return a mapping of it into the range (used for looping). If the argument is earlier than or equal to the end of this range, do nothing.

◆ start()

timepos_t Temporal::Range::start ( void  ) const
inline

Definition at line 167 of file temporal/temporal/range.h.

◆ subtract()

RangeList Temporal::Range::subtract ( RangeList ) const

Member Data Documentation

◆ _end

timepos_t Temporal::Range::_end
private

end of the range (exclusive, see above)

Definition at line 196 of file temporal/temporal/range.h.

◆ _start

timepos_t Temporal::Range::_start
private

start of the range

Definition at line 195 of file temporal/temporal/range.h.


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