Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
ChannelGroupInterval Class Reference

A start and an end time, and whatever else subclasses associate with them. More...

#include <Channel.h>

Inheritance diagram for ChannelGroupInterval:
[legend]

Public Member Functions

 ChannelGroupInterval (double start, double end)
 
virtual ~ChannelGroupInterval ()
 
double Start () const
 
double End () const
 

Private Attributes

const double mStart
 
const double mEnd
 

Detailed Description

A start and an end time, and whatever else subclasses associate with them.

Start and end are immutable, but subclasses may add other mutable data

Invariant
Start() <= End()

Definition at line 30 of file Channel.h.

Constructor & Destructor Documentation

◆ ChannelGroupInterval()

ChannelGroupInterval::ChannelGroupInterval ( double  start,
double  end 
)
inline
Precondition
start <= end

Definition at line 33 of file Channel.h.

34 : mStart{ start }, mEnd{ end }
35 {
36 assert(start <= end);
37 }
const double mStart
Definition: Channel.h:45
const double mEnd
Definition: Channel.h:45
auto end(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
Definition: PackedArray.h:159

References PackedArray::end().

Here is the call graph for this function:

◆ ~ChannelGroupInterval()

ChannelGroupInterval::~ChannelGroupInterval ( )
virtualdefault

Member Function Documentation

◆ End()

double ChannelGroupInterval::End ( ) const
inline

Definition at line 42 of file Channel.h.

42{ return mEnd; }

Referenced by TrackShifter::CommonSelectInterval(), anonymous_namespace{WaveClipAdjustBorderHandle.cpp}::GetRightAdjustLimit(), WaveTrackShifter::SelectInterval(), and ChangeClipSpeedDialog::SetClipSpeedFromDialog().

Here is the caller graph for this function:

◆ Start()

double ChannelGroupInterval::Start ( ) const
inline

Definition at line 41 of file Channel.h.

41{ return mStart; }

Referenced by anonymous_namespace{TimeShiftHandle.cpp}::AdjustToSnap(), TrackShifter::CommonSelectInterval(), anonymous_namespace{WaveClipAdjustBorderHandle.cpp}::GetLeftAdjustLimit(), WaveTrack::GetNextInterval(), WaveTrackShifter::SelectInterval(), and ChangeClipSpeedDialog::SetClipSpeedFromDialog().

Here is the caller graph for this function:

Member Data Documentation

◆ mEnd

const double ChannelGroupInterval::mEnd
private

Definition at line 45 of file Channel.h.

◆ mStart

const double ChannelGroupInterval::mStart
private

Definition at line 45 of file Channel.h.


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