Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgNb4Iterator Class Reference

#include <SgNbIterator.h>

Inheritance diagram for SgNb4Iterator:

Inheritance graph
List of all members.

Detailed Description

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).

    1 -p- 2    e.g. next[2] = +WE

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.
SgNb4Iteratoroperator= (const SgNb4Iterator &)
 Not implemented.

Static Private Attributes

static const Precomp s_precomp


struct  Precomp
 Precomputed neighbors. More...

Constructor & Destructor Documentation

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.

Member Function Documentation

template<typename T, int SIZE>
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.

template<typename T, int SIZE>
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.

template<typename T, int SIZE>
void SgArray< T, SIZE >::Iterator::operator++ (  )  [inherited]

Definition at line 164 of file SgArray.h.

References SgArray< T, SIZE >::Iterator::m_current.

SgNb4Iterator& SgNb4Iterator::operator= ( const SgNb4Iterator  )  [private]

Not implemented.

Member Data Documentation

const SgNb4Iterator::Precomp SgNb4Iterator::s_precomp [static, private]

Definition at line 48 of file SgNbIterator.h.

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

17 Jun 2010 Doxygen 1.4.7