My Project
Dune::cpgrid::GlobalIdMapping Class Reference

Class managing the mappings of local indices to global ids. More...

#include <GlobalIdMapping.hpp>

Inheritance diagram for Dune::cpgrid::GlobalIdMapping:
Dune::cpgrid::LevelGlobalIdSet

Public Member Functions

void swap (std::vector< int > &cellMapping, std::vector< int > &faceMapping, std::vector< int > &pointMapping)
 Swap data for initialization. More...
 
template<int codim>
std::vector< int > & getMapping ()
 Get the vector with the mappings for a codimension. More...
 
template<int codim>
const std::vector< int > & getMapping () const
 Get the vector with the mappings for a codimension. More...
 

Protected Attributes

std::vector< int > cellMapping_
 A vector containing the global id of cell with index i at position i.
 
std::vector< int > faceMapping_
 A vector containing the global id of face with index i at position i.
 
std::vector< int > pointMapping_
 A vector containing the global id of point with index i at position i.
 

Detailed Description

Class managing the mappings of local indices to global ids.

Member Function Documentation

◆ getMapping() [1/2]

template<int codim>
std::vector< int > & Dune::cpgrid::GlobalIdMapping::getMapping ( )
inline

Get the vector with the mappings for a codimension.

Template Parameters
codimThe codimension.

◆ getMapping() [2/2]

template<int codim>
const std::vector< int > & Dune::cpgrid::GlobalIdMapping::getMapping ( ) const
inline

Get the vector with the mappings for a codimension.

Template Parameters
codimThe codimension.

◆ swap()

void Dune::cpgrid::GlobalIdMapping::swap ( std::vector< int > &  cellMapping,
std::vector< int > &  faceMapping,
std::vector< int > &  pointMapping 
)
inline

Swap data for initialization.

Parameters
cellMappingA vector with global id of index i at position i.
faceMappingA vector with global id of index i at position i.
pointMappingA vector with global id of index i at position i.

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