PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Public Member Functions | Private Attributes | List of all members
pism::PointsWithGhosts Class Reference

#include <Grid.hh>

+ Inheritance diagram for pism::PointsWithGhosts:

Public Member Functions

 PointsWithGhosts (const Grid &grid, unsigned int stencil_width=1)
 
int i () const
 
int j () const
 
void next ()
 
 operator bool () const
 

Private Attributes

int m_i
 
int m_j
 
int m_i_first
 
int m_i_last
 
int m_j_first
 
int m_j_last
 
bool m_done
 

Detailed Description

Iterator class for traversing the grid, including ghost points.

Usage:

for (PointsWithGhosts p(grid, stencil_width); p; p.next()) { ... }

Definition at line 178 of file Grid.hh.


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