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:
Inheritance graph

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. More...
 
std::vector< int > faceMapping_
 A vector containing the global id of face with index i at position i. More...
 
std::vector< int > pointMapping_
 A vector containing the global id of point with index i at position i. More...
 

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.

References cellMapping_, faceMapping_, and pointMapping_.

◆ 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.

References cellMapping_, faceMapping_, and pointMapping_.

◆ 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.

References cellMapping_, faceMapping_, and pointMapping_.

Referenced by Dune::cpgrid::LevelGlobalIdSet::swap().

Member Data Documentation

◆ cellMapping_

std::vector<int> Dune::cpgrid::GlobalIdMapping::cellMapping_
protected

A vector containing the global id of cell with index i at position i.

Referenced by getMapping(), and swap().

◆ faceMapping_

std::vector<int> Dune::cpgrid::GlobalIdMapping::faceMapping_
protected

A vector containing the global id of face with index i at position i.

Referenced by getMapping(), and swap().

◆ pointMapping_

std::vector<int> Dune::cpgrid::GlobalIdMapping::pointMapping_
protected

A vector containing the global id of point with index i at position i.

Referenced by getMapping(), and swap().


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