TrinityCore
Loading...
Searching...
No Matches
LinkedListHead::Iterator< _Ty > Class Template Reference

#include <LinkedList.h>

Public Types

using iterator_category = std::bidirectional_iterator_tag
 
using value_type = _Ty
 
using difference_type = ptrdiff_t
 
using base_pointer = std::conditional_t< std::is_const_v< _Ty >, LinkedListElement const, LinkedListElement > *
 
using pointer = _Ty *
 
using reference = _Ty &
 

Public Member Functions

 Iterator ()
 
 Iterator (base_pointer _Pnode)
 
reference operator* () const
 
pointer operator-> () const
 
base_pointer node () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
Iteratoroperator-- ()
 
Iterator operator-- (int)
 
bool operator== (Iterator const &_Right) const =default
 

Protected Attributes

base_pointer _Ptr
 

Detailed Description

template<typename _Ty>
class LinkedListHead::Iterator< _Ty >

Definition at line 147 of file LinkedList.h.

Member Typedef Documentation

◆ base_pointer

template<typename _Ty >
using LinkedListHead::Iterator< _Ty >::base_pointer = std::conditional_t<std::is_const_v<_Ty>, LinkedListElement const, LinkedListElement>*

Definition at line 153 of file LinkedList.h.

◆ difference_type

template<typename _Ty >
using LinkedListHead::Iterator< _Ty >::difference_type = ptrdiff_t

Definition at line 152 of file LinkedList.h.

◆ iterator_category

template<typename _Ty >
using LinkedListHead::Iterator< _Ty >::iterator_category = std::bidirectional_iterator_tag

Definition at line 150 of file LinkedList.h.

◆ pointer

template<typename _Ty >
using LinkedListHead::Iterator< _Ty >::pointer = _Ty*

Definition at line 154 of file LinkedList.h.

◆ reference

template<typename _Ty >
using LinkedListHead::Iterator< _Ty >::reference = _Ty&

Definition at line 155 of file LinkedList.h.

◆ value_type

template<typename _Ty >
using LinkedListHead::Iterator< _Ty >::value_type = _Ty

Definition at line 151 of file LinkedList.h.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<typename _Ty >
LinkedListHead::Iterator< _Ty >::Iterator ( )
inline

Definition at line 157 of file LinkedList.h.

◆ Iterator() [2/2]

template<typename _Ty >
LinkedListHead::Iterator< _Ty >::Iterator ( base_pointer  _Pnode)
inlineexplicit

Definition at line 161 of file LinkedList.h.

Member Function Documentation

◆ node()

template<typename _Ty >
base_pointer LinkedListHead::Iterator< _Ty >::node ( ) const
inline

Definition at line 175 of file LinkedList.h.

+ Here is the caller graph for this function:

◆ operator*()

template<typename _Ty >
reference LinkedListHead::Iterator< _Ty >::operator* ( ) const
inline

Definition at line 165 of file LinkedList.h.

◆ operator++() [1/2]

template<typename _Ty >
Iterator & LinkedListHead::Iterator< _Ty >::operator++ ( )
inline

Definition at line 180 of file LinkedList.h.

◆ operator++() [2/2]

template<typename _Ty >
Iterator LinkedListHead::Iterator< _Ty >::operator++ ( int  )
inline

Definition at line 186 of file LinkedList.h.

◆ operator--() [1/2]

template<typename _Ty >
Iterator & LinkedListHead::Iterator< _Ty >::operator-- ( )
inline

Definition at line 193 of file LinkedList.h.

◆ operator--() [2/2]

template<typename _Ty >
Iterator LinkedListHead::Iterator< _Ty >::operator-- ( int  )
inline

Definition at line 199 of file LinkedList.h.

◆ operator->()

template<typename _Ty >
pointer LinkedListHead::Iterator< _Ty >::operator-> ( ) const
inline

Definition at line 170 of file LinkedList.h.

◆ operator==()

template<typename _Ty >
bool LinkedListHead::Iterator< _Ty >::operator== ( Iterator< _Ty > const &  _Right) const
default

Member Data Documentation

◆ _Ptr

template<typename _Ty >
base_pointer LinkedListHead::Iterator< _Ty >::_Ptr
protected

Definition at line 210 of file LinkedList.h.


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