Rebel Fork Framework
Urho3D::IntRectIterator Class Reference

Iterator that iterates through all elements of IntRect row-by-row. More...

#include <Urho3D/Math/Rect.h>

Public Member Functions

 IntRectIterator (const IntRect &rect, const IntVector2 &index)
 Construct valid. Iterators with different rectangles are incompatible.
IntRectIterator & operator++ ()
 Pre-increment.
IntRectIterator operator++ (int)
 Post-increment.
bool operator== (const IntRectIterator &rhs) const
 Compare for equality.
bool operator!= (const IntRectIterator &rhs) const
 Compare for non-equality.
const IntVector2 & operator* () const
 Dereference.
const IntVector2 * operator-> () const
 Dereference.

Private Attributes

IntRect rect_
 Iterated rectangle.
IntVector2 index_
 Current index within rectangle.

Detailed Description

Iterator that iterates through all elements of IntRect row-by-row.


The documentation for this class was generated from the following file:
  • Urho3D/Math/Rect.h