TrinityCore
DBStorageIterator< T > Class Template Reference

#include <DBStorageIterator.h>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = T
 
using difference_type = std::ptrdiff_t
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

 DBStorageIterator ()
 
 DBStorageIterator (T const *const *index, uint32 size, uint32 pos=0)
 
T const * operator-> () const
 
T const * operator* () const
 
bool operator== (DBStorageIterator const &right) const
 
DBStorageIteratoroperator++ ()
 
DBStorageIterator operator++ (int)
 

Private Attributes

T const *const * _index
 
uint32 _pos
 
uint32 _end
 

Detailed Description

template<class T>
class DBStorageIterator< T >

Definition at line 25 of file DBStorageIterator.h.

Member Typedef Documentation

◆ difference_type

template<class T >
using DBStorageIterator< T >::difference_type = std::ptrdiff_t

Definition at line 30 of file DBStorageIterator.h.

◆ iterator_category

template<class T >
using DBStorageIterator< T >::iterator_category = std::forward_iterator_tag

Definition at line 28 of file DBStorageIterator.h.

◆ pointer

template<class T >
using DBStorageIterator< T >::pointer = T*

Definition at line 31 of file DBStorageIterator.h.

◆ reference

template<class T >
using DBStorageIterator< T >::reference = T&

Definition at line 32 of file DBStorageIterator.h.

◆ value_type

template<class T >
using DBStorageIterator< T >::value_type = T

Definition at line 29 of file DBStorageIterator.h.

Constructor & Destructor Documentation

◆ DBStorageIterator() [1/2]

template<class T >
DBStorageIterator< T >::DBStorageIterator ( )
inline

Definition at line 34 of file DBStorageIterator.h.

◆ DBStorageIterator() [2/2]

template<class T >
DBStorageIterator< T >::DBStorageIterator ( T const *const *  index,
uint32  size,
uint32  pos = 0 
)
inline

Definition at line 35 of file DBStorageIterator.h.

Member Function Documentation

◆ operator*()

template<class T >
T const * DBStorageIterator< T >::operator* ( ) const
inline

Definition at line 45 of file DBStorageIterator.h.

◆ operator++() [1/2]

template<class T >
DBStorageIterator & DBStorageIterator< T >::operator++ ( )
inline

Definition at line 49 of file DBStorageIterator.h.

◆ operator++() [2/2]

template<class T >
DBStorageIterator DBStorageIterator< T >::operator++ ( int  )
inline

Definition at line 61 of file DBStorageIterator.h.

◆ operator->()

template<class T >
T const * DBStorageIterator< T >::operator-> ( ) const
inline

Definition at line 44 of file DBStorageIterator.h.

◆ operator==()

template<class T >
bool DBStorageIterator< T >::operator== ( DBStorageIterator< T > const &  right) const
inline

Definition at line 47 of file DBStorageIterator.h.

Member Data Documentation

◆ _end

template<class T >
uint32 DBStorageIterator< T >::_end
private

Definition at line 71 of file DBStorageIterator.h.

◆ _index

template<class T >
T const* const* DBStorageIterator< T >::_index
private

Definition at line 69 of file DBStorageIterator.h.

◆ _pos

template<class T >
uint32 DBStorageIterator< T >::_pos
private

Definition at line 70 of file DBStorageIterator.h.


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