dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
Loading...
Searching...
No Matches
io::iterator Class Reference

internally used service iterator providing RAII for io_service references - returned when iterating More...

#include <io_iterator.h>

Inheritance diagram for io::iterator:
Collaboration diagram for io::iterator:

Classes

struct  service
 the iteration state of a range-for over an IOKit iterator: the service in hand and the iterator handing out the next More...

Public Member Functions

auto begin()
auto count() const noexcept
auto end() const noexcept
 operator const ::io_iterator_t&() const noexcept
 auto converter into const io_object
 operator const ::io_iterator_t&() const noexcept
 auto converter into const io_object
reference<::io_service_t> operator ++() noexcept
 Increments the iterator and returns the next object which is retained and needs to be released.
 operator ::io_iterator_t&() noexcept
 auto converter into io_object
 operator ::io_iterator_t&() noexcept
 auto converter into io_object
 operator ::io_iterator_t*() noexcept
 auto converter into io_object pointer
 operator ::io_iterator_t*() noexcept
 auto converter into io_object pointer
::io_iterator_t& operator =(::io_iterator_t io_object) noexcept
 reference object assignment
reference& operator =(const reference& reference)
 reference-to-reference assignment: retain the new object before releasing the old one, so self-assignment stays valid
bool operator ==(::io_iterator_t io_object) const noexcept
void reset() noexcept
reference& retain()
 ~iterator()

Detailed Description

internally used service iterator providing RAII for io_service references - returned when iterating

remark: The service class does not track io_iterator reference counting itself! Use io::reference to track IOObject references! The io_iterator needs to have a seperately defined object lifetime.

Constructor & Destructor Documentation

◆ ~iterator()

io::iterator::~iterator()
inline

Member Function Documentation

◆ begin()

auto io::iterator::begin()
inline

◆ count()

auto io::reference<::io_iterator_t>::count() const
inlinenoexceptinherited

◆ end()

auto io::iterator::end() const
inlinenoexcept

◆ operator const ::io_iterator_t &() [1/2]

io::reference<::io_iterator_t>::operator const ::io_iterator_t&() const
inlinenoexceptinherited

auto converter into const io_object

◆ operator const ::io_iterator_t &() [2/2]

io::reference<::io_iterator_t>::operator const ::io_iterator_t&() const
inlinenoexceptinherited

auto converter into const io_object

◆ operator ++()

reference<::io_service_t> io::iterator::operator ++()
inlinenoexcept

Increments the iterator and returns the next object which is retained and needs to be released.

Here is the call graph for this function:

◆ operator ::io_iterator_t &() [1/2]

io::reference<::io_iterator_t>::operator ::io_iterator_t&()
inlinenoexceptinherited

auto converter into io_object

◆ operator ::io_iterator_t &() [2/2]

io::reference<::io_iterator_t>::operator ::io_iterator_t&()
inlinenoexceptinherited

auto converter into io_object

◆ operator ::io_iterator_t *() [1/2]

io::reference<::io_iterator_t>::operator ::io_iterator_t*()
inlinenoexceptinherited

auto converter into io_object pointer

◆ operator ::io_iterator_t *() [2/2]

io::reference<::io_iterator_t>::operator ::io_iterator_t*()
inlinenoexceptinherited

auto converter into io_object pointer

◆ operator =() [1/2]

::io_iterator_t& io::reference<::io_iterator_t>::operator =(::io_iterator_t io_object)
inlinenoexcept

reference object assignment

◆ operator =() [2/2]

reference& io::reference<::io_iterator_t>::operator =(const reference& reference)
inline

reference-to-reference assignment: retain the new object before releasing the old one, so self-assignment stays valid

◆ operator ==()

bool io::reference<::io_iterator_t>::operator ==(::io_iterator_t io_object) const
inlinenoexceptinherited

◆ reset()

void io::iterator::reset()
inlinenoexcept

◆ retain()

reference& io::reference<::io_iterator_t>::retain()
inlineinherited
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: