Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QGstUtils::GListIterator< ListType, IsConst > Struct Template Reference

#include <qglist_helper_p.h>

Collaboration diagram for QGstUtils::GListIterator< ListType, IsConst >:

Public Types

using GListType = std::conditional_t<IsConst, const GList *, GList *>
using difference_type = std::ptrdiff_t
using value_type = ListType
using pointer = value_type *
using reference = value_type &
using iterator_category = std::input_iterator_tag

Public Member Functions

 GListIterator (GListType element=nullptr)
const ListType & operator* () const noexcept
const ListType * operator-> () const noexcept
GListIteratoroperator++ () noexcept
GListIterator operator++ (int n) noexcept
bool operator== (const GListIterator &r) const noexcept
bool operator!= (const GListIterator &r) const noexcept

Public Attributes

GListType element = nullptr

Detailed Description

template<typename ListType, bool IsConst>
struct QGstUtils::GListIterator< ListType, IsConst >

Definition at line 28 of file qglist_helper_p.h.

Member Typedef Documentation

◆ difference_type

template<typename ListType, bool IsConst>
using QGstUtils::GListIterator< ListType, IsConst >::difference_type = std::ptrdiff_t

Definition at line 58 of file qglist_helper_p.h.

◆ GListType

template<typename ListType, bool IsConst>
using QGstUtils::GListIterator< ListType, IsConst >::GListType = std::conditional_t<IsConst, const GList *, GList *>

Definition at line 30 of file qglist_helper_p.h.

◆ iterator_category

template<typename ListType, bool IsConst>
using QGstUtils::GListIterator< ListType, IsConst >::iterator_category = std::input_iterator_tag

Definition at line 62 of file qglist_helper_p.h.

◆ pointer

template<typename ListType, bool IsConst>
using QGstUtils::GListIterator< ListType, IsConst >::pointer = value_type *

Definition at line 60 of file qglist_helper_p.h.

◆ reference

template<typename ListType, bool IsConst>
using QGstUtils::GListIterator< ListType, IsConst >::reference = value_type &

Definition at line 61 of file qglist_helper_p.h.

◆ value_type

template<typename ListType, bool IsConst>
using QGstUtils::GListIterator< ListType, IsConst >::value_type = ListType

Definition at line 59 of file qglist_helper_p.h.

Constructor & Destructor Documentation

◆ GListIterator()

template<typename ListType, bool IsConst>
QGstUtils::GListIterator< ListType, IsConst >::GListIterator ( GListType element = nullptr)
inlineexplicit

Definition at line 32 of file qglist_helper_p.h.

Member Function Documentation

◆ operator!=()

template<typename ListType, bool IsConst>
bool QGstUtils::GListIterator< ListType, IsConst >::operator!= ( const GListIterator< ListType, IsConst > & r) const
inlinenoexcept

Definition at line 56 of file qglist_helper_p.h.

◆ operator*()

template<typename ListType, bool IsConst>
const ListType & QGstUtils::GListIterator< ListType, IsConst >::operator* ( ) const
inlinenoexcept

Definition at line 34 of file qglist_helper_p.h.

References operator->().

Here is the call graph for this function:

◆ operator++() [1/2]

template<typename ListType, bool IsConst>
GListIterator & QGstUtils::GListIterator< ListType, IsConst >::operator++ ( )
inlinenoexcept

Definition at line 40 of file qglist_helper_p.h.

◆ operator++() [2/2]

template<typename ListType, bool IsConst>
GListIterator QGstUtils::GListIterator< ListType, IsConst >::operator++ ( int n)
inlinenoexcept

Definition at line 47 of file qglist_helper_p.h.

◆ operator->()

template<typename ListType, bool IsConst>
const ListType * QGstUtils::GListIterator< ListType, IsConst >::operator-> ( ) const
inlinenoexcept

Definition at line 35 of file qglist_helper_p.h.

Referenced by operator*().

Here is the caller graph for this function:

◆ operator==()

template<typename ListType, bool IsConst>
bool QGstUtils::GListIterator< ListType, IsConst >::operator== ( const GListIterator< ListType, IsConst > & r) const
inlinenoexcept

Definition at line 55 of file qglist_helper_p.h.

Member Data Documentation

◆ element

template<typename ListType, bool IsConst>
GListType QGstUtils::GListIterator< ListType, IsConst >::element = nullptr

Definition at line 64 of file qglist_helper_p.h.


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