PahoMqttCpp
MQTT C++ Client for POSIX and Windows
Loading...
Searching...
No Matches
mqtt::topic_matcher< T >::iterator Class Reference

#include <topic_matcher.h>

Inheritance diagram for mqtt::topic_matcher< T >::iterator:
mqtt::topic_matcher< T >::const_iterator

Public Member Functions

reference operator* () noexcept
const_reference operator* () const noexcept
value_typeoperator-> () noexcept
const value_typeoperator-> () const noexcept
iterator operator++ (int) noexcept
iterator & operator++ () noexcept
bool operator!= (const iterator &other) const noexcept

Friends

class topic_matcher

Detailed Description

template<typename T>
class mqtt::topic_matcher< T >::iterator

Generic iterator over all items in the collection.

Member Function Documentation

◆ operator*() [1/2]

template<typename T>
reference mqtt::topic_matcher< T >::iterator::operator* ( )
inlinenoexcept

Gets a reference to the current value.

Returns
A reference to the current value.

◆ operator*() [2/2]

template<typename T>
const_reference mqtt::topic_matcher< T >::iterator::operator* ( ) const
inlinenoexcept

Gets a const reference to the current value.

Returns
A const reference to the current value.

◆ operator->() [1/2]

template<typename T>
value_type * mqtt::topic_matcher< T >::iterator::operator-> ( )
inlinenoexcept

Get a pointer to the current value.

Returns
A pointer to the current value.

◆ operator->() [2/2]

template<typename T>
const value_type * mqtt::topic_matcher< T >::iterator::operator-> ( ) const
inlinenoexcept

Get a const pointer to the current value.

Returns
A const pointer to the current value.

◆ operator++() [1/2]

template<typename T>
iterator mqtt::topic_matcher< T >::iterator::operator++ ( int )
inlinenoexcept

Postfix increment operator.

Returns
An iterator pointing to the previous matching item.

◆ operator++() [2/2]

template<typename T>
iterator & mqtt::topic_matcher< T >::iterator::operator++ ( )
inlinenoexcept

Prefix increment operator.

Returns
An iterator pointing to the next matching item.

◆ operator!=()

template<typename T>
bool mqtt::topic_matcher< T >::iterator::operator!= ( const iterator & other) const
inlinenoexcept

Compares two iterators to see if they don't refer to the same node.

Parameters
otherThe other iterator to compare against this one.
Returns
true if they don't match, false if they do

◆ topic_matcher

template<typename T>
friend class topic_matcher
friend

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