Audacity  3.0.3
Public Member Functions | Private Attributes | Friends | List of all members
WaveTrack::AllClipsConstIterator Class Reference

#include <WaveTrack.h>

Inheritance diagram for WaveTrack::AllClipsConstIterator:
[legend]
Collaboration diagram for WaveTrack::AllClipsConstIterator:
[legend]

Public Member Functions

 AllClipsConstIterator ()
 
 AllClipsConstIterator (const WaveTrack &track)
 
const WaveClipoperator* () const
 
AllClipsConstIteratoroperator++ ()
 

Private Attributes

AllClipsIterator mIter
 

Friends

bool operator== (const AllClipsConstIterator &a, const AllClipsConstIterator &b)
 
bool operator!= (const AllClipsConstIterator &a, const AllClipsConstIterator &b)
 

Additional Inherited Members

- Public Types inherited from ValueIterator< const WaveClip * >
using iterator_category = std::forward_iterator_tag
 
using value_type = const WaveClip *
 
using difference_type = ptrdiff_t
 
using pointer = void
 
using reference = const const WaveClip *
 

Detailed Description

Definition at line 422 of file WaveTrack.h.

Constructor & Destructor Documentation

◆ AllClipsConstIterator() [1/2]

WaveTrack::AllClipsConstIterator::AllClipsConstIterator ( )
inline

Definition at line 427 of file WaveTrack.h.

427 {}

◆ AllClipsConstIterator() [2/2]

WaveTrack::AllClipsConstIterator::AllClipsConstIterator ( const WaveTrack track)
inlineexplicit

Definition at line 430 of file WaveTrack.h.

431  : mIter{ const_cast< WaveTrack& >( track ) }
432  {}

Member Function Documentation

◆ operator*()

const WaveClip* WaveTrack::AllClipsConstIterator::operator* ( ) const
inline

Definition at line 434 of file WaveTrack.h.

435  { return *mIter; }

◆ operator++()

AllClipsConstIterator& WaveTrack::AllClipsConstIterator::operator++ ( )
inline

Definition at line 437 of file WaveTrack.h.

438  { ++mIter; return *this; }

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const AllClipsConstIterator a,
const AllClipsConstIterator b 
)
friend

Definition at line 445 of file WaveTrack.h.

447  { return !( a == b ); }

◆ operator==

bool operator== ( const AllClipsConstIterator a,
const AllClipsConstIterator b 
)
friend

Definition at line 441 of file WaveTrack.h.

443  { return a.mIter == b.mIter; }

Member Data Documentation

◆ mIter

AllClipsIterator WaveTrack::AllClipsConstIterator::mIter
private

Definition at line 450 of file WaveTrack.h.


The documentation for this class was generated from the following file:
WaveTrack
A Track that contains audio waveform data.
Definition: WaveTrack.h:69
WaveTrack::AllClipsConstIterator::mIter
AllClipsIterator mIter
Definition: WaveTrack.h:450