Dune::cpgrid::LocalIndexProxy< AccessMethod, SizeMethod > Class Template Reference

A proxy class representing a row of LocalIndexContainerProxy. More...

#include <GridHelpers.hpp>

Classes

class  iterator
 

Public Types

typedef iterator const_iterator
 

Public Member Functions

 LocalIndexProxy (const Dune::CpGrid *grid, int cell_index)
 Constructor. More...
 
int operator[] (int local_index)
 Get the index of the cell associated with a local_index. More...
 
const_iterator begin ()
 
const_iterator end ()
 

Detailed Description

template<int(Dune::CpGrid::*)(int, int) const AccessMethod, int(Dune::CpGrid::*)(int) const SizeMethod>
class Dune::cpgrid::LocalIndexProxy< AccessMethod, SizeMethod >

A proxy class representing a row of LocalIndexContainerProxy.

Template Parameters
AccessMethodFunction pointer to access the values of a sparse row (e.g. the faces attached to a cell.
SizeMethodFuction pointer to access the size of the sparse row (e.g. the number of faces attached to a cell.

Member Typedef Documentation

◆ const_iterator

template<int(Dune::CpGrid::*)(int, int) const AccessMethod, int(Dune::CpGrid::*)(int) const SizeMethod>
typedef iterator Dune::cpgrid::LocalIndexProxy< AccessMethod, SizeMethod >::const_iterator

Constructor & Destructor Documentation

◆ LocalIndexProxy()

template<int(Dune::CpGrid::*)(int, int) const AccessMethod, int(Dune::CpGrid::*)(int) const SizeMethod>
Dune::cpgrid::LocalIndexProxy< AccessMethod, SizeMethod >::LocalIndexProxy ( const Dune::CpGrid grid,
int  cell_index 
)
inline

Constructor.

Parameters
gridThe grid whose face to cell mapping we represent.
cell_indexThe index of the cell we repesent.

Member Function Documentation

◆ begin()

template<int(Dune::CpGrid::*)(int, int) const AccessMethod, int(Dune::CpGrid::*)(int) const SizeMethod>
const_iterator Dune::cpgrid::LocalIndexProxy< AccessMethod, SizeMethod >::begin ( )
inline

◆ end()

template<int(Dune::CpGrid::*)(int, int) const AccessMethod, int(Dune::CpGrid::*)(int) const SizeMethod>
const_iterator Dune::cpgrid::LocalIndexProxy< AccessMethod, SizeMethod >::end ( )
inline

◆ operator[]()

template<int(Dune::CpGrid::*)(int, int) const AccessMethod, int(Dune::CpGrid::*)(int) const SizeMethod>
int Dune::cpgrid::LocalIndexProxy< AccessMethod, SizeMethod >::operator[] ( int  local_index)
inline

Get the index of the cell associated with a local_index.


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