![]() |
Pangolin
Header-only C++20 plane computational geometry library
|
Forward iterator over the set cells, in row-major order. More...
#include <bitmatrix.hpp>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = PointType |
| using | difference_type = std::ptrdiff_t |
| using | pointer = const PointType* |
| using | reference = const PointType& |
Public Member Functions | |
| Iterator ()=default | |
| reference | operator* () const |
| The cell the iterator is on. | |
| pointer | operator-> () const |
| The cell the iterator is on. | |
| Iterator & | operator++ () |
| Advances to the next set cell. | |
| Iterator | operator++ (int) |
| Advances to the next set cell, returning the previous one. | |
| bool | operator== (const Iterator &other) const |
| Whether two iterators are on the same cell of the same matrix. | |
| bool | operator!= (const Iterator &other) const |
| Whether two iterators are on different cells. | |
Friends | |
| class | BitMatrix |
Forward iterator over the set cells, in row-major order.
| using pgl::BitMatrix< TPointType >::Iterator::difference_type = std::ptrdiff_t |
| using pgl::BitMatrix< TPointType >::Iterator::iterator_category = std::forward_iterator_tag |
| using pgl::BitMatrix< TPointType >::Iterator::pointer = const PointType* |
| using pgl::BitMatrix< TPointType >::Iterator::reference = const PointType& |
| using pgl::BitMatrix< TPointType >::Iterator::value_type = PointType |
|
default |
|
inline |
Whether two iterators are on different cells.
|
inline |
The cell the iterator is on.
|
inline |
Advances to the next set cell.
|
inline |
Advances to the next set cell, returning the previous one.
|
inline |
The cell the iterator is on.
|
inline |
Whether two iterators are on the same cell of the same matrix.
|
friend |