Audacity  3.0.3
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 51 of file WaveTrack.h.

Constructor & Destructor Documentation

◆ Region() [1/2]

Region::Region ( )
inline

Definition at line 53 of file WaveTrack.h.

53 : start(0), end(0) {}

◆ Region() [2/2]

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

Definition at line 54 of file WaveTrack.h.

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

Member Function Documentation

◆ operator<()

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

Definition at line 59 of file WaveTrack.h.

60  {
61  return this->start < b.start;
62  }

References start.

Member Data Documentation

◆ end

double Region::end

◆ start

double Region::start

The documentation for this struct was generated from the following file:
Region::start
double start
Definition: WaveTrack.h:56
Region::end
double end
Definition: WaveTrack.h:56