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

#include <i_iterator.hpp>

Inheritance diagram for neolib::random_access_iterator< T, Category, Difference, Pointer, Reference >:
neolib::iterator< T, Category, Difference, Pointer, Reference >

Public Types

typedef i_random_access_iterator< T, Category, Difference, Pointer, Reference > abstract_type
 
using abstract_iterator = abstract_type
 
using abstract_const_iterator = i_random_access_const_iterator< T, Category, Difference, const T *, const T & >
 
typedef T value_type
 
typedef Difference difference_type
 
typedef Pointer pointer
 
typedef Reference reference
 
typedef Category iterator_category
 
- Public Types inherited from neolib::iterator< T, Category, Difference, Pointer, Reference >
typedef i_iterator< T, Category, Difference, Pointer, Reference > abstract_type
 
typedef T value_type
 
typedef Difference difference_type
 
typedef Pointer pointer
 
typedef Reference reference
 
typedef Category iterator_category
 
typedef abstract_type abstract_iterator
 
typedef i_const_iterator< T, Category, Difference, const T *, const T & > abstract_const_iterator
 

Public Member Functions

 random_access_iterator ()
 
 random_access_iterator (abstract_iterator *aWrappedIterator)
 
 random_access_iterator (const self_type &aOther)
 
 ~random_access_iterator ()
 
self_typeoperator= (const self_type &aOther)
 
 operator abstract_iterator & ()
 
abstract_iteratoroperator+= (difference_type aDifference)
 
abstract_iteratoroperator-= (difference_type aDifference)
 
self_type operator+ (difference_type aDifference) const
 
self_type operator- (difference_type aDifference) const
 
reference operator[] (difference_type aDifference) const
 
difference_type operator- (const self_type &aOther) const
 
bool operator< (const self_type &aOther) const
 
bool operator<= (const self_type &aOther) const
 
bool operator> (const self_type &aOther) const
 
bool operator>= (const self_type &aOther) const
 
abstract_iteratorwrapped_iterator () const
 
- Public Member Functions inherited from neolib::iterator< T, Category, Difference, Pointer, Reference >
 iterator ()
 
 iterator (abstract_iterator *aWrappedIterator)
 
 iterator (const self_type &aOther)
 
 ~iterator ()
 
self_typeoperator= (const self_type &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
 
abstract_const_iteratorconst_clone (void *memory) const
 
voidstorage () const
 

Additional Inherited Members

- Protected Attributes inherited from neolib::iterator< T, Category, Difference, Pointer, Reference >
bool iSingular = true
 
std::aligned_storage< sizeof(void *) *10 >::type iStorage
 

Detailed Description

template<typename T, typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
class neolib::random_access_iterator< T, Category, Difference, Pointer, Reference >

Definition at line 485 of file i_iterator.hpp.

Member Typedef Documentation

◆ abstract_const_iterator

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
using neolib::random_access_iterator< T, Category, Difference, Pointer, Reference >::abstract_const_iterator = i_random_access_const_iterator<T, Category, Difference, const T*, const T&>

Definition at line 498 of file i_iterator.hpp.

◆ abstract_iterator

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
using neolib::random_access_iterator< T, Category, Difference, Pointer, Reference >::abstract_iterator = abstract_type

Definition at line 497 of file i_iterator.hpp.

◆ abstract_type

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
typedef i_random_access_iterator<T, Category, Difference, Pointer, Reference> neolib::random_access_iterator< T, Category, Difference, Pointer, Reference >::abstract_type

Definition at line 490 of file i_iterator.hpp.

◆ difference_type

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
typedef Difference neolib::iterator< T, Category, Difference, Pointer, Reference >::difference_type

Definition at line 403 of file i_iterator.hpp.

◆ iterator_category

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
typedef Category neolib::iterator< T, Category, Difference, Pointer, Reference >::iterator_category

Definition at line 406 of file i_iterator.hpp.

◆ pointer

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
typedef Pointer neolib::iterator< T, Category, Difference, Pointer, Reference >::pointer

Definition at line 404 of file i_iterator.hpp.

◆ reference

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
typedef Reference neolib::iterator< T, Category, Difference, Pointer, Reference >::reference

Definition at line 405 of file i_iterator.hpp.

◆ value_type

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
typedef T neolib::iterator< T, Category, Difference, Pointer, Reference >::value_type

Definition at line 402 of file i_iterator.hpp.

Constructor & Destructor Documentation

◆ random_access_iterator() [1/3]

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

Definition at line 500 of file i_iterator.hpp.

◆ random_access_iterator() [2/3]

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

Definition at line 504 of file i_iterator.hpp.

◆ random_access_iterator() [3/3]

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

Definition at line 508 of file i_iterator.hpp.

◆ ~random_access_iterator()

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

Definition at line 512 of file i_iterator.hpp.

Member Function Documentation

◆ operator abstract_iterator &()

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

Definition at line 520 of file i_iterator.hpp.

◆ operator+()

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
self_type neolib::random_access_iterator< T, Category, Difference, Pointer, Reference >::operator+ ( difference_type  aDifference) const
inline

Definition at line 527 of file i_iterator.hpp.

◆ operator+=()

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
abstract_iterator & neolib::random_access_iterator< T, Category, Difference, Pointer, Reference >::operator+= ( difference_type  aDifference)
inline

Definition at line 525 of file i_iterator.hpp.

◆ operator-() [1/2]

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

Definition at line 530 of file i_iterator.hpp.

◆ operator-() [2/2]

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
self_type neolib::random_access_iterator< T, Category, Difference, Pointer, Reference >::operator- ( difference_type  aDifference) const
inline

Definition at line 528 of file i_iterator.hpp.

◆ operator-=()

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
abstract_iterator & neolib::random_access_iterator< T, Category, Difference, Pointer, Reference >::operator-= ( difference_type  aDifference)
inline

Definition at line 526 of file i_iterator.hpp.

◆ operator<()

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

Definition at line 531 of file i_iterator.hpp.

◆ operator<=()

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

Definition at line 532 of file i_iterator.hpp.

◆ operator=()

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

Definition at line 515 of file i_iterator.hpp.

◆ operator>()

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

Definition at line 533 of file i_iterator.hpp.

◆ operator>=()

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

Definition at line 534 of file i_iterator.hpp.

◆ operator[]()

template<typename T , typename Category = std::random_access_iterator_tag, typename Difference = std::ptrdiff_t, typename Pointer = T*, typename Reference = T&>
reference neolib::random_access_iterator< T, Category, Difference, Pointer, Reference >::operator[] ( difference_type  aDifference) const
inline

Definition at line 529 of file i_iterator.hpp.

◆ wrapped_iterator()

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

Definition at line 536 of file i_iterator.hpp.


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