gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

SystemDeviceIterator.cxx (1301B)


      1 #include "portaudiocpp/SystemDeviceIterator.hxx"
      2 
      3 namespace portaudio
      4 {
      5 	// -----------------------------------------------------------------------------------
      6 
      7 	Device &System::DeviceIterator::operator*() const
      8 	{
      9 		return **ptr_;
     10 	}
     11 
     12 	Device *System::DeviceIterator::operator->() const
     13 	{
     14 		return &**this;
     15 	}
     16 
     17 	// -----------------------------------------------------------------------------------
     18 
     19 	System::DeviceIterator &System::DeviceIterator::operator++()
     20 	{
     21 		++ptr_;
     22 		return *this;
     23 	}
     24 
     25 	System::DeviceIterator System::DeviceIterator::operator++(int)
     26 	{
     27 		System::DeviceIterator prev = *this;
     28 		++*this;
     29 		return prev;
     30 	}
     31 
     32 	System::DeviceIterator &System::DeviceIterator::operator--()
     33 	{
     34 		--ptr_;
     35 		return *this;
     36 	}
     37 
     38 	System::DeviceIterator System::DeviceIterator::operator--(int)
     39 	{
     40 		System::DeviceIterator prev = *this;
     41 		--*this;
     42 		return prev;
     43 	}
     44 
     45 	// -----------------------------------------------------------------------------------
     46 
     47 	bool System::DeviceIterator::operator==(const System::DeviceIterator &rhs) const
     48 	{
     49 		return (ptr_ == rhs.ptr_);
     50 	}
     51 
     52 	bool System::DeviceIterator::operator!=(const System::DeviceIterator &rhs) const
     53 	{
     54 		return !(*this == rhs);
     55 	}
     56 
     57 	// -----------------------------------------------------------------------------------
     58 } // namespace portaudio
     59 
     60