very simple iterator to walk into the rect_of_hexes More...
#include <display.hpp>
Public Types | |
| typedef std::forward_iterator_tag | iterator_category |
| typedef map_location | value_type |
| typedef int | difference_type |
| typedef const map_location * | pointer |
| typedef const map_location & | reference |
Public Member Functions | |
| iterator (const map_location &loc, const rect_of_hexes &rect) | |
| iterator & | operator++ () |
| increment y first, then when reaching bottom, increment x More... | |
| bool | operator== (const iterator &that) const |
| bool | operator!= (const iterator &that) const |
| const map_location & | operator* () const |
Private Attributes | |
| map_location | loc_ |
| const rect_of_hexes & | rect_ |
very simple iterator to walk into the rect_of_hexes
Definition at line 326 of file display.hpp.
Definition at line 338 of file display.hpp.
| typedef std::forward_iterator_tag display::rect_of_hexes::iterator::iterator_category |
Definition at line 336 of file display.hpp.
| typedef const map_location* display::rect_of_hexes::iterator::pointer |
Definition at line 339 of file display.hpp.
| typedef const map_location& display::rect_of_hexes::iterator::reference |
Definition at line 340 of file display.hpp.
Definition at line 337 of file display.hpp.
|
inline |
Definition at line 327 of file display.hpp.
|
inline |
Definition at line 333 of file display.hpp.
References loc_.
|
inline |
Definition at line 334 of file display.hpp.
References loc_.
| display::rect_of_hexes::iterator & display::rect_of_hexes::iterator::operator++ | ( | ) |
increment y first, then when reaching bottom, increment x
Definition at line 593 of file display.cpp.
References display::rect_of_hexes::bottom, loc_, rect_, display::rect_of_hexes::top, map_location::x, and map_location::y.
|
inline |
Definition at line 332 of file display.hpp.
References loc_.
|
private |
Definition at line 343 of file display.hpp.
Referenced by operator!=(), operator*(), operator++(), and operator==().
|
private |
Definition at line 344 of file display.hpp.
Referenced by operator++().