Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
TrackShifter::TimeInterval Struct Reference

A simple time interval. More...

#include <TimeShiftHandle.h>

Public Member Functions

 TimeInterval (double start, double end)
 
double Start () const
 
double End () const
 

Private Attributes

const double mStart
 
const double mEnd
 

Detailed Description

A simple time interval.

Invariant
Start() <= End()

Definition at line 87 of file TimeShiftHandle.h.

Constructor & Destructor Documentation

◆ TimeInterval()

TrackShifter::TimeInterval::TimeInterval ( double  start,
double  end 
)
inline

Definition at line 88 of file TimeShiftHandle.h.

89 : mStart{ start }, mEnd{ std::max(start, end) }
90 {}
const char * end(const char *str) noexcept
Definition: StringUtils.h:106

Member Function Documentation

◆ End()

double TrackShifter::TimeInterval::End ( ) const
inline

Definition at line 93 of file TimeShiftHandle.h.

93{ return mEnd; }

Referenced by TrackShifter::CommonSelectInterval(), and WaveTrackShifter::SelectInterval().

Here is the caller graph for this function:

◆ Start()

double TrackShifter::TimeInterval::Start ( ) const
inline

Definition at line 92 of file TimeShiftHandle.h.

92{ return mStart; }

Referenced by TrackShifter::CommonSelectInterval(), and WaveTrackShifter::SelectInterval().

Here is the caller graph for this function:

Member Data Documentation

◆ mEnd

const double TrackShifter::TimeInterval::mEnd
private

Definition at line 96 of file TimeShiftHandle.h.

◆ mStart

const double TrackShifter::TimeInterval::mStart
private

Definition at line 95 of file TimeShiftHandle.h.


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