view src/portaudio/bindings/cpp/source/portaudiocpp/SystemDeviceIterator.cxx @ 19:891f60ab2af1

Ranlib
author Chris Cannam
date Mon, 25 Mar 2013 16:27:30 +0000
parents e13257ea84a4
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