Audacity 3.2.0
Public Member Functions | Private Attributes | Friends | List of all members
NumberIterator< Integral > Class Template Reference

#include <IteratorX.h>

Inheritance diagram for NumberIterator< Integral >:
[legend]
Collaboration diagram for NumberIterator< Integral >:
[legend]

Public Member Functions

 NumberIterator (Integral value)
 
Integral operator* () const
 
NumberIteratoroperator++ ()
 
NumberIterator operator++ (int) const
 

Private Attributes

Integral mValue
 

Friends

bool operator== (NumberIterator x, NumberIterator y)
 
bool operator!= (NumberIterator x, NumberIterator y)
 

Additional Inherited Members

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

Detailed Description

template<typename Integral = int>
class NumberIterator< Integral >

Definition at line 252 of file IteratorX.h.

Constructor & Destructor Documentation

◆ NumberIterator()

template<typename Integral = int>
NumberIterator< Integral >::NumberIterator ( Integral  value)
inlineexplicit

Definition at line 255 of file IteratorX.h.

255: mValue{ value } {}
Integral mValue
Definition: IteratorX.h:268

Member Function Documentation

◆ operator*()

template<typename Integral = int>
Integral NumberIterator< Integral >::operator* ( ) const
inline

Definition at line 257 of file IteratorX.h.

257{ return mValue; }

References NumberIterator< Integral >::mValue.

◆ operator++() [1/2]

template<typename Integral = int>
NumberIterator & NumberIterator< Integral >::operator++ ( )
inline

Definition at line 258 of file IteratorX.h.

258{ ++mValue; return *this; }

References NumberIterator< Integral >::mValue.

◆ operator++() [2/2]

template<typename Integral = int>
NumberIterator NumberIterator< Integral >::operator++ ( int  ) const
inline

Definition at line 259 of file IteratorX.h.

260 { auto result = *this; ++result; return result; }

Friends And Related Function Documentation

◆ operator!=

template<typename Integral = int>
bool operator!= ( NumberIterator< Integral >  x,
NumberIterator< Integral >  y 
)
friend

Definition at line 264 of file IteratorX.h.

265 { return !(x == y); }

◆ operator==

template<typename Integral = int>
bool operator== ( NumberIterator< Integral >  x,
NumberIterator< Integral >  y 
)
friend

Definition at line 262 of file IteratorX.h.

263 { return x.mValue == y.mValue; }

Member Data Documentation

◆ mValue

template<typename Integral = int>
Integral NumberIterator< Integral >::mValue
private

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