#include <SgNbIterator.h>
Inheritance diagram for SgNb4Iterator:
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 29 of file SgNbIterator.h.
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 |
Classes | |
struct | Precomp |
Precomputed neighbors. More... |
SgNb4Iterator::SgNb4Iterator | ( | SgPoint | p | ) |
Definition at line 33 of file SgNbIterator.h.
References SgPointUtil::InBoardRange(), and SG_ASSERT.
SgNb4Iterator::SgNb4Iterator | ( | const SgNb4Iterator & | ) | [private] |
Not implemented.
const T & SgArray< T, SIZE >::Iterator::operator * | ( | ) | const [inherited] |
Definition at line 157 of file SgArray.h.
References SgArray< T, SIZE >::Iterator::m_current, and SG_ASSERT.
SgArray< T, SIZE >::Iterator::operator bool | ( | ) | const [inherited] |
Definition at line 170 of file SgArray.h.
References SgArray< T, SIZE >::Iterator::m_current, and SgArray< T, SIZE >::Iterator::m_end.
void SgArray< T, SIZE >::Iterator::operator++ | ( | ) | [inherited] |
SgNb4Iterator& SgNb4Iterator::operator= | ( | const SgNb4Iterator & | ) | [private] |
Not implemented.
const SgNb4Iterator::Precomp SgNb4Iterator::s_precomp [static, private] |
Definition at line 48 of file SgNbIterator.h.