Mercurial > hg > sv-dependency-builds
comparison src/portaudio/bindings/cpp/source/portaudiocpp/SystemHostApiIterator.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/SystemHostApiIterator.hxx" | |
2 | |
3 namespace portaudio | |
4 { | |
5 // ----------------------------------------------------------------------------------- | |
6 | |
7 HostApi &System::HostApiIterator::operator*() const | |
8 { | |
9 return **ptr_; | |
10 } | |
11 | |
12 HostApi *System::HostApiIterator::operator->() const | |
13 { | |
14 return &**this; | |
15 } | |
16 | |
17 // ----------------------------------------------------------------------------------- | |
18 | |
19 System::HostApiIterator &System::HostApiIterator::operator++() | |
20 { | |
21 ++ptr_; | |
22 return *this; | |
23 } | |
24 | |
25 System::HostApiIterator System::HostApiIterator::operator++(int) | |
26 { | |
27 System::HostApiIterator prev = *this; | |
28 ++*this; | |
29 return prev; | |
30 } | |
31 | |
32 System::HostApiIterator &System::HostApiIterator::operator--() | |
33 { | |
34 --ptr_; | |
35 return *this; | |
36 } | |
37 | |
38 System::HostApiIterator System::HostApiIterator::operator--(int) | |
39 { | |
40 System::HostApiIterator prev = *this; | |
41 --*this; | |
42 return prev; | |
43 } | |
44 | |
45 // ----------------------------------------------------------------------------------- | |
46 | |
47 bool System::HostApiIterator::operator==(const System::HostApiIterator &rhs) | |
48 { | |
49 return (ptr_ == rhs.ptr_); | |
50 } | |
51 | |
52 bool System::HostApiIterator::operator!=(const System::HostApiIterator &rhs) | |
53 { | |
54 return !(*this == rhs); | |
55 } | |
56 | |
57 // ----------------------------------------------------------------------------------- | |
58 } // namespace portaudio | |
59 |