Audacity  3.0.3
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
AudioIoCallback::AudioIOExtIterator Class Reference

#include <AudioIO.h>

Collaboration diagram for AudioIoCallback::AudioIOExtIterator:
[legend]

Public Types

using difference_type = ptrdiff_t
 
using value_type = AudioIOExt &
 
using pointer = AudioIOExt *
 
using reference = AudioIOExt &
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

 AudioIOExtIterator (AudioIoCallback &audioIO, bool end)
 
AudioIOExtIteratoroperator++ ()
 
auto operator* () const -> AudioIOExt &
 

Private Attributes

std::vector< std::unique_ptr< AudioIOExtBase > >::const_iterator mIterator
 

Friends

bool operator== (const AudioIOExtIterator &xx, const AudioIOExtIterator &yy)
 
bool operator!= (const AudioIOExtIterator &xx, const AudioIOExtIterator &yy)
 

Detailed Description

Definition at line 120 of file AudioIO.h.

Member Typedef Documentation

◆ difference_type

Definition at line 122 of file AudioIO.h.

◆ iterator_category

using AudioIoCallback::AudioIOExtIterator::iterator_category = std::forward_iterator_tag

Definition at line 126 of file AudioIO.h.

◆ pointer

Definition at line 124 of file AudioIO.h.

◆ reference

Definition at line 125 of file AudioIO.h.

◆ value_type

Definition at line 123 of file AudioIO.h.

Constructor & Destructor Documentation

◆ AudioIOExtIterator()

AudioIoCallback::AudioIOExtIterator::AudioIOExtIterator ( AudioIoCallback audioIO,
bool  end 
)
inlineexplicit

Definition at line 128 of file AudioIO.h.

129  : mIterator{ end
130  ? audioIO.mAudioIOExt.end()
131  : audioIO.mAudioIOExt.begin() }
132  {}

References AudioIoCallback::mAudioIOExt.

Member Function Documentation

◆ operator*()

auto AudioIoCallback::AudioIOExtIterator::operator* ( ) const -> AudioIOExt &

Definition at line 3109 of file AudioIO.cpp.

3110 {
3111  // Down-cast and dereference are safe because only AudioIOCallback
3112  // populates the array
3113  return *static_cast<AudioIOExt*>(mIterator->get());
3114 }

◆ operator++()

AudioIOExtIterator& AudioIoCallback::AudioIOExtIterator::operator++ ( )
inline

Definition at line 133 of file AudioIO.h.

133 { ++mIterator; return *this; }

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const AudioIOExtIterator xx,
const AudioIOExtIterator yy 
)
friend

Definition at line 140 of file AudioIO.h.

142  {
143  return !(xx == yy);
144  }

◆ operator==

bool operator== ( const AudioIOExtIterator xx,
const AudioIOExtIterator yy 
)
friend

Definition at line 135 of file AudioIO.h.

137  {
138  return xx.mIterator == yy.mIterator;
139  }

Member Data Documentation

◆ mIterator

std::vector<std::unique_ptr<AudioIOExtBase> >::const_iterator AudioIoCallback::AudioIOExtIterator::mIterator
private

Definition at line 146 of file AudioIO.h.


The documentation for this class was generated from the following files:
AudioIoCallback::AudioIOExtIterator::mIterator
std::vector< std::unique_ptr< AudioIOExtBase > >::const_iterator mIterator
Definition: AudioIO.h:146
AudioIOExt
Definition: AudioIOExt.h:29
AudioIoCallback::mAudioIOExt
std::vector< std::unique_ptr< AudioIOExtBase > > mAudioIOExt
Definition: AudioIOBase.h:318