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 218 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 195 of file Track.h.

196  {} )
197  : start{ start }, end{ end }, pExtra{ std::move( pExtra ) }
198  {
199  wxASSERT( start <= end );
200  }

◆ Extra()

TrackIntervalData* TrackInterval::Extra ( ) const
inline

Definition at line 225 of file Track.h.

225 { 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:210
ConstTrackInterval::pExtra
std::unique_ptr< TrackIntervalData > pExtra
Definition: Track.h:213
ConstTrackInterval::start
double start
Definition: Track.h:210