ge211  2021.5.1
A student game engine
Rect< COORDINATE >::iterator Class Reference

Detailed Description

template<typename COORDINATE>
class ge211::geometry::Rect< COORDINATE >::iterator

An iterator over the Posn<COORDINATE>s of a Rect<COORDINATE>.

Iterates in column-major order.

Definition at line 681 of file ge211_geometry.hxx.

+ Inheritance diagram for Rect< COORDINATE >::iterator:
+ Collaboration diagram for Rect< COORDINATE >::iterator:

Public Member Functions

Posn_type operator* () const
 Returns the current Posn of this iterator.
 
Posn_type const * operator-> () const
 Returns a pointer to the current Posn of this iterator.
 
iteratoroperator++ ()
 Pre-increments, advancing this iterator to the next Posn.
 
iteratoroperator-- ()
 Pre-decrements, retreating this iterator to the previous Posn.
 
iterator operator++ (int)
 Post-increments, advancing this iterator to the next Posn.
 
iterator operator-- (int)
 Post-decrements, retreating this iterator to the previous Posn.
 
bool operator== (iterator const &that) const
 Compares whether two iterators are equal. More...
 
bool operator!= (iterator const &that) const
 Iterator inequality.
 

Member Function Documentation

◆ operator==()

bool operator== ( iterator const &  that) const
inline

Compares whether two iterators are equal.

Considers only the current position, not the bounds of the stripe we're iterating through.

Definition at line 739 of file ge211_geometry.hxx.


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