Mercurial > hg > sv-dependency-builds
view src/portaudio/bindings/cpp/source/portaudiocpp/SystemHostApiIterator.cxx @ 30:553a5f65ef64
Updates to use dw2 exceptions instead of sjlj (in line with Qt5 MinGW distribution)
author | Chris Cannam |
---|---|
date | Thu, 12 Jun 2014 17:02:21 +0100 |
parents | e13257ea84a4 |
children |
line wrap: on
line source
#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