Urho3D::RandomAccessIterator< T > Struct Template Reference

Random access iterator. More...

#include <Urho3D/Container/VectorBase.h>

Public Member Functions

 RandomAccessIterator ()
 Construct.
 
 RandomAccessIterator (T *ptr)
 Construct with an object pointer.
 
T * operator-> () const
 Point to the object.
 
T & operator* () const
 Dereference the object.
 
RandomAccessIterator< T > & operator++ ()
 Preincrement the pointer.
 
RandomAccessIterator< T > operator++ (int)
 Postincrement the pointer.
 
RandomAccessIterator< T > & operator-- ()
 Predecrement the pointer.
 
RandomAccessIterator< T > operator-- (int)
 Postdecrement the pointer.
 
RandomAccessIterator< T > & operator+= (int value)
 Add an offset to the pointer.
 
RandomAccessIterator< T > & operator-= (int value)
 Subtract an offset from the pointer.
 
RandomAccessIterator< T > operator+ (int value) const
 Add an offset to the pointer.
 
RandomAccessIterator< T > operator- (int value) const
 Subtract an offset from the pointer.
 
int operator- (const RandomAccessIterator &rhs) const
 Calculate offset to another iterator.
 
bool operator== (const RandomAccessIterator &rhs) const
 Test for equality with another iterator.
 
bool operator!= (const RandomAccessIterator &rhs) const
 Test for inequality with another iterator.
 
bool operator< (const RandomAccessIterator &rhs) const
 Test for less than with another iterator.
 
bool operator> (const RandomAccessIterator &rhs) const
 Test for greater than with another iterator.
 
bool operator<= (const RandomAccessIterator &rhs) const
 Test for less than or equal with another iterator.
 
bool operator>= (const RandomAccessIterator &rhs) const
 Test for greater than or equal with another iterator.
 

Public Attributes

T * ptr_
 Pointer.
 

Detailed Description

template<class T>
struct Urho3D::RandomAccessIterator< T >

Random access iterator.


The documentation for this struct was generated from the following file:
  • Source/Urho3D/Container/VectorBase.h