ge211
Basic_rectangle< T >::iterator Class Reference

Detailed Description

template<class T>
class ge211::geometry::Basic_rectangle< T >::iterator

An iterator over the Basic_position<T>s of a Basic_rectangle<T>.

Iterates in column-major order.

Definition at line 570 of file ge211_geometry.h.

+ Inheritance diagram for Basic_rectangle< T >::iterator:

Public Member Functions

Position operator* () const
 Returns the current Position of this iterator.
 
Position const * operator-> () const
 Returns a pointer to the current Position of this iterator.
 
iteratoroperator++ ()
 Pre-increments, advancing this iterator to the next Position.
 
iteratoroperator-- ()
 Pre-decrements, retreating this iterator to the previous Position.
 
iterator operator++ (int)
 Post-increments, advancing this iterator to the next Position.
 
iterator operator-- (int)
 Post-decrements, retreating this iterator to the previous Position.
 
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 631 of file ge211_geometry.h.


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