neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::const_iterator< T, Category, Difference, Pointer, Reference > Class Template Reference

#include <i_iterator.hpp>

Inheritance diagram for neolib::const_iterator< T, Category, Difference, Pointer, Reference >:
neolib::random_access_const_iterator< T, Category, Difference, Pointer, Reference >

Public Types

typedef T value_type
 
typedef Difference difference_type
 
typedef Pointer pointer
 
typedef Reference reference
 
typedef Category iterator_category
 
typedef i_const_iterator< T, Category, Difference, Pointer, Reference > abstract_iterator
 
typedef i_const_iterator< T, Category, Difference, Pointer, Reference > abstract_const_iterator
 

Public Member Functions

 const_iterator ()
 
 const_iterator (abstract_iterator *aWrappedIterator)
 
 const_iterator (const self_type &aOther)
 
 const_iterator (const i_iterator< T, Category, Difference, T *, T & > &aOther)
 
 const_iterator (const iterator< T, Category, Difference, T *, T & > &aOther)
 
 ~const_iterator ()
 
self_typeoperator= (const self_type &aOther)
 
self_typeoperator= (const iterator< T, Category, Difference, T *, T & > &aOther)
 
 operator abstract_iterator & ()
 
abstract_iteratoroperator++ ()
 
abstract_iteratoroperator-- ()
 
self_type operator++ (int)
 
self_type operator-- (int)
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const self_type &aOther) const
 
bool operator!= (const self_type &aOther) const
 
bool is_singular () const
 
abstract_iteratorwrapped_iterator () const
 
abstract_iteratorclone (void *memory) const
 
voidstorage () const
 

Protected Attributes

bool iSingular = true
 
std::aligned_storage< sizeof(void *) *10 >::type iStorage
 

Detailed Description

template<typename T, typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
class neolib::const_iterator< T, Category, Difference, Pointer, Reference >

Definition at line 126 of file i_iterator.hpp.

Member Typedef Documentation

◆ abstract_const_iterator

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
typedef i_const_iterator<T, Category, Difference, Pointer, Reference> neolib::const_iterator< T, Category, Difference, Pointer, Reference >::abstract_const_iterator

Definition at line 137 of file i_iterator.hpp.

◆ abstract_iterator

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
typedef i_const_iterator<T, Category, Difference, Pointer, Reference> neolib::const_iterator< T, Category, Difference, Pointer, Reference >::abstract_iterator

Definition at line 136 of file i_iterator.hpp.

◆ difference_type

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
typedef Difference neolib::const_iterator< T, Category, Difference, Pointer, Reference >::difference_type

Definition at line 131 of file i_iterator.hpp.

◆ iterator_category

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
typedef Category neolib::const_iterator< T, Category, Difference, Pointer, Reference >::iterator_category

Definition at line 134 of file i_iterator.hpp.

◆ pointer

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
typedef Pointer neolib::const_iterator< T, Category, Difference, Pointer, Reference >::pointer

Definition at line 132 of file i_iterator.hpp.

◆ reference

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
typedef Reference neolib::const_iterator< T, Category, Difference, Pointer, Reference >::reference

Definition at line 133 of file i_iterator.hpp.

◆ value_type

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
typedef T neolib::const_iterator< T, Category, Difference, Pointer, Reference >::value_type

Definition at line 130 of file i_iterator.hpp.

Constructor & Destructor Documentation

◆ const_iterator() [1/5]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
neolib::const_iterator< T, Category, Difference, Pointer, Reference >::const_iterator ( )
inline

Definition at line 139 of file i_iterator.hpp.

◆ const_iterator() [2/5]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
neolib::const_iterator< T, Category, Difference, Pointer, Reference >::const_iterator ( abstract_iterator aWrappedIterator)
inline

Definition at line 142 of file i_iterator.hpp.

◆ const_iterator() [3/5]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
neolib::const_iterator< T, Category, Difference, Pointer, Reference >::const_iterator ( const self_type aOther)
inline

Definition at line 147 of file i_iterator.hpp.

◆ const_iterator() [4/5]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
neolib::const_iterator< T, Category, Difference, Pointer, Reference >::const_iterator ( const i_iterator< T, Category, Difference, T *, T & > &  aOther)
inline

Definition at line 152 of file i_iterator.hpp.

◆ const_iterator() [5/5]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
neolib::const_iterator< T, Category, Difference, Pointer, Reference >::const_iterator ( const iterator< T, Category, Difference, T *, T & > &  aOther)
inline

Definition at line 157 of file i_iterator.hpp.

◆ ~const_iterator()

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
neolib::const_iterator< T, Category, Difference, Pointer, Reference >::~const_iterator ( )
inline

Definition at line 162 of file i_iterator.hpp.

Member Function Documentation

◆ clone()

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
abstract_iterator * neolib::const_iterator< T, Category, Difference, Pointer, Reference >::clone ( void memory) const
inline

Definition at line 209 of file i_iterator.hpp.

◆ is_singular()

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
bool neolib::const_iterator< T, Category, Difference, Pointer, Reference >::is_singular ( ) const
inline

Definition at line 199 of file i_iterator.hpp.

◆ operator abstract_iterator &()

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator abstract_iterator & ( )
inline

Definition at line 185 of file i_iterator.hpp.

◆ operator!=()

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
bool neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator!= ( const self_type aOther) const
inline

Definition at line 197 of file i_iterator.hpp.

◆ operator*()

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
reference neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator* ( ) const
inline

Definition at line 194 of file i_iterator.hpp.

◆ operator++() [1/2]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
abstract_iterator & neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator++ ( )
inline

Definition at line 190 of file i_iterator.hpp.

◆ operator++() [2/2]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
self_type neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator++ ( int  )
inline

Definition at line 192 of file i_iterator.hpp.

◆ operator--() [1/2]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
abstract_iterator & neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator-- ( )
inline

Definition at line 191 of file i_iterator.hpp.

◆ operator--() [2/2]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
self_type neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator-- ( int  )
inline

Definition at line 193 of file i_iterator.hpp.

◆ operator->()

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
pointer neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator-> ( ) const
inline

Definition at line 195 of file i_iterator.hpp.

◆ operator=() [1/2]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
self_type & neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator= ( const iterator< T, Category, Difference, T *, T & > &  aOther)
inline

Definition at line 176 of file i_iterator.hpp.

◆ operator=() [2/2]

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
self_type & neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator= ( const self_type aOther)
inline

Definition at line 167 of file i_iterator.hpp.

◆ operator==()

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
bool neolib::const_iterator< T, Category, Difference, Pointer, Reference >::operator== ( const self_type aOther) const
inline

Definition at line 196 of file i_iterator.hpp.

◆ storage()

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
void * neolib::const_iterator< T, Category, Difference, Pointer, Reference >::storage ( ) const
inline

Definition at line 215 of file i_iterator.hpp.

◆ wrapped_iterator()

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
abstract_iterator & neolib::const_iterator< T, Category, Difference, Pointer, Reference >::wrapped_iterator ( ) const
inline

Definition at line 203 of file i_iterator.hpp.

Member Data Documentation

◆ iSingular

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
bool neolib::const_iterator< T, Category, Difference, Pointer, Reference >::iSingular = true
mutableprotected

Definition at line 221 of file i_iterator.hpp.

◆ iStorage

template<typename T , typename Category = std::bidirectional_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = const T*, typename Reference = const T&>
std::aligned_storage<sizeof(void*)*10>::type neolib::const_iterator< T, Category, Difference, Pointer, Reference >::iStorage
mutableprotected

Definition at line 222 of file i_iterator.hpp.


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