avcpp 3.2.1
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
av::Dictionary::DictionaryIterator< constIterator > Class Template Reference

Base dictionary iterator implementation.

#include <dictionary.h>

Public Types

using iterator_category = std::forward_iterator_tag
 Standard iterator category tag.
using value_type = typename std::conditional<constIterator, const Entry, Entry>::type
 Type produced by dereferencing.
using difference_type = ptrdiff_t
 Distance type required by the iterator traits.
using pointer = value_type*
 Pointer to the entry.
using reference = value_type&
 Reference to the entry.

Public Member Functions

 DictionaryIterator (DictType &dict, const Entry &entry) noexcept
 Continue the iteration from the given entry.
 DictionaryIterator (DictType &dict) noexcept
 Start the iteration at the first entry.
DictionaryIterator & operator++ () noexcept
 Advance to the next entry.
DictionaryIterator operator++ (int) noexcept
 Advance, returning the previous position.
EntryType & operator* () noexcept
 Entry at the current position.
EntryType * operator-> () noexcept
 Entry at the current position.

Friends

bool operator== (const DictionaryIterator &lhs, const DictionaryIterator &rhs) noexcept
 Compare two iterators.
bool operator!= (const DictionaryIterator &lhs, const DictionaryIterator &rhs) noexcept
 Compare two iterators.

Constructor & Destructor Documentation

◆ DictionaryIterator() [1/2]

template<bool constIterator = false>
av::Dictionary::DictionaryIterator< constIterator >::DictionaryIterator ( DictType & dict,
const Entry & entry )
inlinenoexcept
Parameters
dictthe dictionary being iterated
entrythe entry to continue from

◆ DictionaryIterator() [2/2]

template<bool constIterator = false>
av::Dictionary::DictionaryIterator< constIterator >::DictionaryIterator ( DictType & dict)
inlinenoexcept
Parameters
dictthe dictionary to iterate

Member Function Documentation

◆ operator*()

template<bool constIterator = false>
EntryType & av::Dictionary::DictionaryIterator< constIterator >::operator* ( )
inlinenoexcept
Returns
the entry; modifying its value changes the dictionary

◆ operator++() [1/2]

template<bool constIterator = false>
DictionaryIterator & av::Dictionary::DictionaryIterator< constIterator >::operator++ ( )
inlinenoexcept
Returns
this iterator

◆ operator++() [2/2]

template<bool constIterator = false>
DictionaryIterator av::Dictionary::DictionaryIterator< constIterator >::operator++ ( int )
inlinenoexcept
Returns
a copy of the iterator before advancing

◆ operator->()

template<bool constIterator = false>
EntryType * av::Dictionary::DictionaryIterator< constIterator >::operator-> ( )
inlinenoexcept
Returns
a pointer to the entry

◆ operator!=

template<bool constIterator = false>
bool operator!= ( const DictionaryIterator< constIterator > & lhs,
const DictionaryIterator< constIterator > & rhs )
friend
Parameters
lhsthe left iterator
rhsthe right iterator
Returns
true when they point at different entries

◆ operator==

template<bool constIterator = false>
bool operator== ( const DictionaryIterator< constIterator > & lhs,
const DictionaryIterator< constIterator > & rhs )
friend
Parameters
lhsthe left iterator
rhsthe right iterator
Returns
true when both point at the same entry

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