Walls And Holes  1
Array2D_Private::Array2DItrTemplate Struct Reference

An almost-implemented iterator object that iterates through all positions in a rectangle. More...

#include <array2d_private.h>

Inheritance diagram for Array2D_Private::Array2DItrTemplate:

Public Member Functions

Array2DItrTemplateoperator++ ()
 
bool operator== (const Array2DItrTemplate &other) const
 
bool operator!= (const Array2DItrTemplate &other) const
 

Protected Member Functions

int x () const
 
int y () const
 
int width () const
 
int height () const
 
 Array2DItrTemplate (int w, int h, int x, int y)
 

Detailed Description

An almost-implemented iterator object that iterates through all positions in a rectangle.

A postfix ++ is not implemented (since this requires copying self).

Implementing operator*() will make this a valid iterator.

Constructor & Destructor Documentation

◆ Array2DItrTemplate()

Array2D_Private::Array2DItrTemplate::Array2DItrTemplate ( int  w,
int  h,
int  x,
int  y 
)
inlineprotected

Member Function Documentation

◆ height()

int Array2D_Private::Array2DItrTemplate::height ( ) const
inlineprotected

◆ operator!=()

bool Array2D_Private::Array2DItrTemplate::operator!= ( const Array2DItrTemplate other) const
inline

◆ operator++()

Array2DItrTemplate& Array2D_Private::Array2DItrTemplate::operator++ ( )
inline

◆ operator==()

bool Array2D_Private::Array2DItrTemplate::operator== ( const Array2DItrTemplate other) const
inline

◆ width()

int Array2D_Private::Array2DItrTemplate::width ( ) const
inlineprotected

◆ x()

int Array2D_Private::Array2DItrTemplate::x ( ) const
inlineprotected
Here is the caller graph for this function:

◆ y()

int Array2D_Private::Array2DItrTemplate::y ( ) const
inlineprotected
Here is the caller graph for this function:

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