Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType > Class Template Reference

#include <grid.hpp>

Collaboration diagram for Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class ItemType>
template<class GridType, class CellType>
class Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >

A mutable forwards iterator that ranges over the cells whose closures intersect a given axis-aligned rectangle.

Definition at line 526 of file grid.hpp.

Public Member Functions

 RectangleCellIteratorBase (GridType &g, Geometry::Rectangle r)
 Constructor for an iterator over all cells whose closures intersect a given rectangle.

 RectangleCellIteratorBase ()
 Constructor for an end iterator.

bool operator== (const RectangleCellIteratorBase< GridType, CellType > &other) const
 Comparison operators.

bool operator!= (const RectangleCellIteratorBase< GridType, CellType > &other) const
RectangleCellIteratorBase<
GridType, CellType > & 
operator++ (int)
 Increment operators.

RectangleCellIteratorBase<
GridType, CellType > & 
operator++ ()
CellType * operator-> () const
 Accessors.

CellType & operator * () const

Protected Attributes

int i
 The current i coordinate.

int imax
 The largest i coordinate.

int j
 The current j coordinate.

int jmin
 The smallest j coordinate.

int jmax
 The largest j coordinate.

CellType * curCell
 The current cell of the iterator.

GridType * grid
 The grid.


Constructor & Destructor Documentation

template<class ItemType>
template<class GridType, class CellType>
Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::RectangleCellIteratorBase GridType &  g,
Geometry::Rectangle  r
[inline]
 

Constructor for an iterator over all cells whose closures intersect a given rectangle.

Parameters:
g a grid
r the rectangle

Definition at line 574 of file grid.hpp.

References Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::i, Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::imax, Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::j, Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::jmax, Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::jmin, and Arak::Geometry::Rectangle.

template<class ItemType>
template<class GridType, class CellType>
Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::RectangleCellIteratorBase  )  [inline]
 

Constructor for an end iterator.

Definition at line 589 of file grid.hpp.


Member Function Documentation

template<class ItemType>
template<class GridType, class CellType>
CellType& Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator *  )  const [inline]
 

Definition at line 628 of file grid.hpp.

template<class ItemType>
template<class GridType, class CellType>
bool Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator!= const RectangleCellIteratorBase< GridType, CellType > &  other  )  const [inline]
 

Definition at line 596 of file grid.hpp.

template<class ItemType>
template<class GridType, class CellType>
RectangleCellIteratorBase<GridType,CellType>& Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator++  )  [inline]
 

Definition at line 607 of file grid.hpp.

References Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::i, Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::imax, Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::j, Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::jmax, and Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::jmin.

template<class ItemType>
template<class GridType, class CellType>
RectangleCellIteratorBase<GridType,CellType>& Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator++ int   )  [inline]
 

Increment operators.

Definition at line 602 of file grid.hpp.

template<class ItemType>
template<class GridType, class CellType>
CellType* Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator->  )  const [inline]
 

Accessors.

Definition at line 627 of file grid.hpp.

template<class ItemType>
template<class GridType, class CellType>
bool Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator== const RectangleCellIteratorBase< GridType, CellType > &  other  )  const [inline]
 

Comparison operators.

Definition at line 594 of file grid.hpp.

References Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::curCell.


Member Data Documentation

template<class ItemType>
template<class GridType, class CellType>
CellType* Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::curCell [protected]
 

The current cell of the iterator.

Definition at line 558 of file grid.hpp.

Referenced by Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator==().

template<class ItemType>
template<class GridType, class CellType>
GridType* Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::grid [protected]
 

The grid.

Definition at line 563 of file grid.hpp.

template<class ItemType>
template<class GridType, class CellType>
int Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::i [protected]
 

The current i coordinate.

Definition at line 533 of file grid.hpp.

Referenced by Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator++(), and Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::RectangleCellIteratorBase().

template<class ItemType>
template<class GridType, class CellType>
int Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::imax [protected]
 

The largest i coordinate.

Definition at line 538 of file grid.hpp.

Referenced by Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator++(), and Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::RectangleCellIteratorBase().

template<class ItemType>
template<class GridType, class CellType>
int Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::j [protected]
 

The current j coordinate.

Definition at line 543 of file grid.hpp.

Referenced by Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator++(), and Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::RectangleCellIteratorBase().

template<class ItemType>
template<class GridType, class CellType>
int Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::jmax [protected]
 

The largest j coordinate.

Definition at line 553 of file grid.hpp.

Referenced by Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator++(), and Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::RectangleCellIteratorBase().

template<class ItemType>
template<class GridType, class CellType>
int Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::jmin [protected]
 

The smallest j coordinate.

Definition at line 548 of file grid.hpp.

Referenced by Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::operator++(), and Arak::Grid< ItemType >::RectangleCellIteratorBase< GridType, CellType >::RectangleCellIteratorBase().


The documentation for this class was generated from the following file:
Generated on Wed May 25 14:41:19 2005 for Arak by doxygen 1.3.6