Audacity 3.2.0
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 205 of file Track.h.

Constructor & Destructor Documentation

◆ TrackInterval()

TrackInterval::TrackInterval ( TrackInterval &&  )
default

Member Function Documentation

◆ ConstTrackInterval() [1/2]

ConstTrackInterval::ConstTrackInterval ( ConstTrackInterval &&  )
default

◆ ConstTrackInterval() [2/2]

ConstTrackInterval::ConstTrackInterval ( double  start,
double  end,
std::unique_ptr< TrackIntervalData pExtra = {} 
)
inline
Precondition
start <= end

Definition at line 182 of file Track.h.

183 {} )
184 : start{ start }, end{ end }, pExtra{ std::move( pExtra ) }
185 {
186 wxASSERT( start <= end );
187 }
double start
Definition: Track.h:197
std::unique_ptr< TrackIntervalData > pExtra
Definition: Track.h:200

◆ Extra()

TrackIntervalData * TrackInterval::Extra ( ) const
inline

Definition at line 212 of file Track.h.

212{ 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: