Mercurial > hg > sv-dependency-builds
view src/portaudio/bindings/cpp/source/portaudiocpp/SystemDeviceIterator.cxx @ 118:a8541380d3e0
Ah, we've already done this. Merge, taking everything from the branch with the older commits.
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 04 Jul 2014 10:37:37 +0100 |
parents | 8a15ff55d9af |
children |
line wrap: on
line source
#include "portaudiocpp/SystemDeviceIterator.hxx" namespace portaudio { // ----------------------------------------------------------------------------------- Device &System::DeviceIterator::operator*() const { return **ptr_; } Device *System::DeviceIterator::operator->() const { return &**this; } // ----------------------------------------------------------------------------------- System::DeviceIterator &System::DeviceIterator::operator++() { ++ptr_; return *this; } System::DeviceIterator System::DeviceIterator::operator++(int) { System::DeviceIterator prev = *this; ++*this; return prev; } System::DeviceIterator &System::DeviceIterator::operator--() { --ptr_; return *this; } System::DeviceIterator System::DeviceIterator::operator--(int) { System::DeviceIterator prev = *this; --*this; return prev; } // ----------------------------------------------------------------------------------- bool System::DeviceIterator::operator==(const System::DeviceIterator &rhs) { return (ptr_ == rhs.ptr_); } bool System::DeviceIterator::operator!=(const System::DeviceIterator &rhs) { return !(*this == rhs); } // ----------------------------------------------------------------------------------- } // namespace portaudio