Walls And Holes  1
Array2DCNeighborIterator< Type > Class Template Reference

#include <array2d.h>

Public Member Functions

 Array2DCNeighborIterator (const Array2D< Type > *r, int x, int y, int idx)
 
bool operator== (const Array2DCNeighborIterator< Type > &other) const
 
bool operator!= (const Array2DCNeighborIterator< Type > &other) const
 
Array2DCNeighborIterator< Type > & operator++ ()
 
Array2DCNeighborIterator< Type > operator++ (int)
 
const Type & operator* () const
 

Static Public Member Functions

static Array2DCNeighborIterator beginning (const Array2D< Type > *r, int x, int y)
 
static Array2DCNeighborIterator ending (const Array2D< Type > *r, int x, int y)
 

Protected Member Functions

int getX (int neighbor) const
 
int getY (int neighbor) const
 
bool isInBounds () const
 

Protected Attributes

const Array2D< Type > * arr
 
int centerX
 
int centerY
 
int neighborIndex
 

Constructor & Destructor Documentation

◆ Array2DCNeighborIterator()

template<typename Type>
Array2DCNeighborIterator< Type >::Array2DCNeighborIterator ( const Array2D< Type > *  r,
int  x,
int  y,
int  idx 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ beginning()

template<typename Type>
static Array2DCNeighborIterator Array2DCNeighborIterator< Type >::beginning ( const Array2D< Type > *  r,
int  x,
int  y 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ending()

template<typename Type>
static Array2DCNeighborIterator Array2DCNeighborIterator< Type >::ending ( const Array2D< Type > *  r,
int  x,
int  y 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getX()

template<typename Type>
int Array2DCNeighborIterator< Type >::getX ( int  neighbor) const
inlineprotected
Here is the caller graph for this function:

◆ getY()

template<typename Type>
int Array2DCNeighborIterator< Type >::getY ( int  neighbor) const
inlineprotected
Here is the caller graph for this function:

◆ isInBounds()

template<typename Type>
bool Array2DCNeighborIterator< Type >::isInBounds ( ) const
inlineprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

template<typename Type>
bool Array2DCNeighborIterator< Type >::operator!= ( const Array2DCNeighborIterator< Type > &  other) const
inline

◆ operator*()

template<typename Type>
const Type& Array2DCNeighborIterator< Type >::operator* ( ) const
inline
Here is the call graph for this function:

◆ operator++() [1/2]

template<typename Type>
Array2DCNeighborIterator<Type>& Array2DCNeighborIterator< Type >::operator++ ( )
inline
Here is the call graph for this function:

◆ operator++() [2/2]

template<typename Type>
Array2DCNeighborIterator<Type> Array2DCNeighborIterator< Type >::operator++ ( int  )
inline

◆ operator==()

template<typename Type>
bool Array2DCNeighborIterator< Type >::operator== ( const Array2DCNeighborIterator< Type > &  other) const
inline

Member Data Documentation

◆ arr

template<typename Type>
const Array2D<Type>* Array2DCNeighborIterator< Type >::arr
protected

◆ centerX

template<typename Type>
int Array2DCNeighborIterator< Type >::centerX
protected

◆ centerY

template<typename Type>
int Array2DCNeighborIterator< Type >::centerY
protected

◆ neighborIndex

template<typename Type>
int Array2DCNeighborIterator< Type >::neighborIndex
protected

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