Dune::cpgrid::FaceCellsContainerProxy Class Reference

A class representing the face to cells mapping similar to the way done in UnstructuredGrid. More...

#include <GridHelpers.hpp>

Public Types

typedef FaceCellsProxy row_type
 

Public Member Functions

 FaceCellsContainerProxy (const Dune::CpGrid *grid)
 Constructor. More...
 
FaceCellsProxy operator[] (int cell_index) const
 Get the mapping for a cell. More...
 
int operator() (int cell_index, int local_index) const
 Get a face associated with a cell. More...
 

Detailed Description

A class representing the face to cells mapping similar to the way done in UnstructuredGrid.

Member Typedef Documentation

◆ row_type

Constructor & Destructor Documentation

◆ FaceCellsContainerProxy()

Dune::cpgrid::FaceCellsContainerProxy::FaceCellsContainerProxy ( const Dune::CpGrid grid)
inlineexplicit

Constructor.

Parameters
gridThe grid whose information we represent.

Member Function Documentation

◆ operator()()

int Dune::cpgrid::FaceCellsContainerProxy::operator() ( int  cell_index,
int  local_index 
) const
inline

Get a face associated with a cell.

Parameters
cell_indexThe index of the cell.
local_indexThe local index of the cell, either 0 or 1.
Theindex of the face or -1 if it is not present because of a boundary.

References Dune::CpGrid::faceCell().

◆ operator[]()

FaceCellsProxy Dune::cpgrid::FaceCellsContainerProxy::operator[] ( int  cell_index) const
inline

Get the mapping for a cell.

Parameters
cell_indexThe index of the cell.

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