mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-08 10:06:11 -05:00
e8dbf4c446
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@249 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
60 lines
1.3 KiB
C++
60 lines
1.3 KiB
C++
#include "portaudiocpp/SystemHostApiIterator.hxx"
|
|
|
|
namespace portaudio
|
|
{
|
|
// -----------------------------------------------------------------------------------
|
|
|
|
HostApi &System::HostApiIterator::operator*() const
|
|
{
|
|
return **ptr_;
|
|
}
|
|
|
|
HostApi *System::HostApiIterator::operator->() const
|
|
{
|
|
return &**this;
|
|
}
|
|
|
|
// -----------------------------------------------------------------------------------
|
|
|
|
System::HostApiIterator &System::HostApiIterator::operator++()
|
|
{
|
|
++ptr_;
|
|
return *this;
|
|
}
|
|
|
|
System::HostApiIterator System::HostApiIterator::operator++(int)
|
|
{
|
|
System::HostApiIterator prev = *this;
|
|
++*this;
|
|
return prev;
|
|
}
|
|
|
|
System::HostApiIterator &System::HostApiIterator::operator--()
|
|
{
|
|
--ptr_;
|
|
return *this;
|
|
}
|
|
|
|
System::HostApiIterator System::HostApiIterator::operator--(int)
|
|
{
|
|
System::HostApiIterator prev = *this;
|
|
--*this;
|
|
return prev;
|
|
}
|
|
|
|
// -----------------------------------------------------------------------------------
|
|
|
|
bool System::HostApiIterator::operator==(const System::HostApiIterator &rhs)
|
|
{
|
|
return (ptr_ == rhs.ptr_);
|
|
}
|
|
|
|
bool System::HostApiIterator::operator!=(const System::HostApiIterator &rhs)
|
|
{
|
|
return !(*this == rhs);
|
|
}
|
|
|
|
// -----------------------------------------------------------------------------------
|
|
} // namespace portaudio
|
|
|