comparison src/portaudio/bindings/cpp/source/portaudiocpp/SystemDeviceIterator.cxx @ 4:e13257ea84a4

Add bzip2, zlib, liblo, portaudio sources
author Chris Cannam
date Wed, 20 Mar 2013 13:59:52 +0000
parents
children
comparison
equal deleted inserted replaced
3:6c505a35919a 4:e13257ea84a4
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)
48 {
49 return (ptr_ == rhs.ptr_);
50 }
51
52 bool System::DeviceIterator::operator!=(const System::DeviceIterator &rhs)
53 {
54 return !(*this == rhs);
55 }
56
57 // -----------------------------------------------------------------------------------
58 } // namespace portaudio
59
60