Audacity  3.0.3
Public Member Functions | List of all members
TrackInterval Class Reference

A start and an end time, and mutative access to optional extra information. More...

#include <Track.h>

Inheritance diagram for TrackInterval:
[legend]
Collaboration diagram for TrackInterval:
[legend]

Public Member Functions

 TrackInterval (TrackInterval &&)=default
 
TrackIntervaloperator= (TrackInterval &&)=default
 
TrackIntervalDataExtra () const
 
 ConstTrackInterval (double start, double end, std::unique_ptr< TrackIntervalData > pExtra={})
 
 ConstTrackInterval (ConstTrackInterval &&)=default
 
- Public Member Functions inherited from ConstTrackInterval
 ConstTrackInterval (double start, double end, std::unique_ptr< TrackIntervalData > pExtra={})
 
 ConstTrackInterval (ConstTrackInterval &&)=default
 
ConstTrackIntervaloperator= (ConstTrackInterval &&)=default
 
double Start () const
 
double End () const
 
const TrackIntervalDataExtra () const
 

Additional Inherited Members

- Protected Attributes inherited from ConstTrackInterval
std::unique_ptr< TrackIntervalDatapExtra
 

Detailed Description

A start and an end time, and mutative access to optional extra information.

Invariant
Start() <= End()

Definition at line 204 of file Track.h.

Constructor & Destructor Documentation

◆ TrackInterval()

TrackInterval::TrackInterval ( TrackInterval &&  )
default

Member Function Documentation

◆ ConstTrackInterval() [1/2]

ConstTrackInterval::ConstTrackInterval
default

◆ ConstTrackInterval() [2/2]

ConstTrackInterval::ConstTrackInterval
inline
Precondition
start <= end

Definition at line 181 of file Track.h.

182  {} )
183  : start{ start }, end{ end }, pExtra{ std::move( pExtra ) }
184  {
185  wxASSERT( start <= end );
186  }

◆ Extra()

TrackIntervalData* TrackInterval::Extra ( ) const
inline

Definition at line 211 of file Track.h.

211 { return pExtra.get(); }

References ConstTrackInterval::pExtra.

Referenced by LabelTrackShifter::GetIndex().

Here is the caller graph for this function:

◆ operator=()

TrackInterval& TrackInterval::operator= ( TrackInterval &&  )
default

The documentation for this class was generated from the following file:
ConstTrackInterval::end
double end
Definition: Track.h:196
ConstTrackInterval::pExtra
std::unique_ptr< TrackIntervalData > pExtra
Definition: Track.h:199
ConstTrackInterval::start
double start
Definition: Track.h:196