PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
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: