Urho3D
Public Types | Public Member Functions | Public Attributes | List of all members
Urho3D::RandomAccessIterator< T > Struct Template Reference

Random access iterator. More...

#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Container/Iter.h>

Public Types

using iterator_category = std::random_access_iterator_tag
 
using difference_type = i32
 
using value_type = T
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

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