To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
The primary repository for this project is hosted at https://github.com/sonic-visualiser/sv-dependency-builds .
This repository is a read-only copy which is updated automatically every hour.
root / src / portaudio_20161030_catalina_patch / bindings / cpp / source / portaudiocpp / SystemHostApiIterator.cxx @ 162:d43aab368df9
History | View | Annotate | Download (1.29 KB)
| 1 |
#include "portaudiocpp/SystemHostApiIterator.hxx" |
|---|---|
| 2 |
|
| 3 |
namespace portaudio
|
| 4 |
{
|
| 5 |
// -----------------------------------------------------------------------------------
|
| 6 |
|
| 7 |
HostApi &System::HostApiIterator::operator*() const |
| 8 |
{
|
| 9 |
return **ptr_;
|
| 10 |
} |
| 11 |
|
| 12 |
HostApi *System::HostApiIterator::operator->() const |
| 13 |
{
|
| 14 |
return &**this; |
| 15 |
} |
| 16 |
|
| 17 |
// -----------------------------------------------------------------------------------
|
| 18 |
|
| 19 |
System::HostApiIterator &System::HostApiIterator::operator++()
|
| 20 |
{
|
| 21 |
++ptr_; |
| 22 |
return *this; |
| 23 |
} |
| 24 |
|
| 25 |
System::HostApiIterator System::HostApiIterator::operator++(int) |
| 26 |
{
|
| 27 |
System::HostApiIterator prev = *this;
|
| 28 |
++*this;
|
| 29 |
return prev;
|
| 30 |
} |
| 31 |
|
| 32 |
System::HostApiIterator &System::HostApiIterator::operator--()
|
| 33 |
{
|
| 34 |
--ptr_; |
| 35 |
return *this; |
| 36 |
} |
| 37 |
|
| 38 |
System::HostApiIterator System::HostApiIterator::operator--(int) |
| 39 |
{
|
| 40 |
System::HostApiIterator prev = *this;
|
| 41 |
--*this;
|
| 42 |
return prev;
|
| 43 |
} |
| 44 |
|
| 45 |
// -----------------------------------------------------------------------------------
|
| 46 |
|
| 47 |
bool System::HostApiIterator::operator==(const System::HostApiIterator &rhs) const |
| 48 |
{
|
| 49 |
return (ptr_ == rhs.ptr_);
|
| 50 |
} |
| 51 |
|
| 52 |
bool System::HostApiIterator::operator!=(const System::HostApiIterator &rhs) const |
| 53 |
{
|
| 54 |
return !(*this == rhs); |
| 55 |
} |
| 56 |
|
| 57 |
// -----------------------------------------------------------------------------------
|
| 58 |
} // namespace portaudio
|
| 59 |
|