To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

The primary repository for this project is hosted at https://github.com/sonic-visualiser/sv-dependency-builds .
This repository is a read-only copy which is updated automatically every hour.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / src / portaudio_20161030_catalina_patch / bindings / cpp / source / portaudiocpp / SystemDeviceIterator.cxx @ 164:9fa11135915a

History | View | Annotate | Download (1.27 KB)

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