Iterator over all 4 neighbor points. More...
#include <SgNbIterator.h>
Classes | |
struct | Precomp |
Precomputed neighbors. More... | |
Public Member Functions | |
SgNb4Iterator (SgPoint p) | |
const T & | operator* () const |
void | operator++ () |
operator bool () const | |
Private Member Functions | |
SgNb4Iterator (const SgNb4Iterator &) | |
Not implemented. | |
SgNb4Iterator & | operator= (const SgNb4Iterator &) |
Not implemented. | |
Static Private Attributes | |
static const Precomp | s_precomp |
Iterator over all 4 neighbor points.
Iterates in sorted order. See also SgNbIterator for an iterator that filters points off board, but needs access to current board.
Vertical and horizontal neighbors (a subset of SgNb8Iterator).
0 | 1 -p- 2 e.g. next[2] = +WE | 3
Definition at line 27 of file SgNbIterator.h.
SgNb4Iterator::SgNb4Iterator | ( | SgPoint | p | ) |
Definition at line 31 of file SgNbIterator.h.
References SgPointUtil::InBoardRange(), and SG_ASSERT.
SgNb4Iterator::SgNb4Iterator | ( | const SgNb4Iterator & | ) | [private] |
Not implemented.
SgArray< T, SIZE >::Iterator::operator bool | ( | ) | const [inherited] |
Definition at line 167 of file SgArray.h.
References SgArray< T, SIZE >::Iterator::m_current, and SgArray< T, SIZE >::Iterator::m_end.
const T & SgArray< T, SIZE >::Iterator::operator* | ( | ) | const [inherited] |
Definition at line 154 of file SgArray.h.
References SgArray< T, SIZE >::Iterator::m_current, and SG_ASSERT.
void SgArray< T, SIZE >::Iterator::operator++ | ( | ) | [inherited] |
Definition at line 161 of file SgArray.h.
References SgArray< T, SIZE >::Iterator::m_current.
SgNb4Iterator& SgNb4Iterator::operator= | ( | const SgNb4Iterator & | ) | [private] |
Not implemented.
const SgNb4Iterator::Precomp SgNb4Iterator::s_precomp [static, private] |
Definition at line 46 of file SgNbIterator.h.