Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
Region Struct Reference

Structure to hold region of a wavetrack and a comparison function for sortability. More...

#include <WaveTrack.h>

Public Member Functions

 Region ()
 
 Region (double start_, double end_)
 
bool operator< (const Region &b) const
 

Public Attributes

double start
 
double end
 

Detailed Description

Structure to hold region of a wavetrack and a comparison function for sortability.

Definition at line 56 of file WaveTrack.h.

Constructor & Destructor Documentation

◆ Region() [1/2]

Region::Region ( )
inline

Definition at line 58 of file WaveTrack.h.

58: start(0), end(0) {}
double start
Definition: WaveTrack.h:61
double end
Definition: WaveTrack.h:61

◆ Region() [2/2]

Region::Region ( double  start_,
double  end_ 
)
inline

Definition at line 59 of file WaveTrack.h.

59: start(start_), end(end_) {}

Member Function Documentation

◆ operator<()

bool Region::operator< ( const Region b) const
inline

Definition at line 64 of file WaveTrack.h.

65 {
66 return this->start < b.start;
67 }

References start.

Member Data Documentation

◆ end

double Region::end

◆ start

double Region::start

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