Dune::cpgrid::IndexSet Class Reference

#include <Indexsets.hpp>

Classes

struct  Codim
 Export the type of the entity used as parameter in the index(...) method. More...
 

Public Types

typedef int IndexType
 
typedef std::vector< GeometryType > Types
 

Public Member Functions

 IndexSet ()
 
 IndexSet (std::size_t numCells, std::size_t numPoints)
 
 ~IndexSet ()
 Destructor. More...
 
const TypesgeomTypes (int codim) const
 
const Typestypes (int codim) const
 
int size (GeometryType type) const
 
int size (int codim) const
 
template<int cd>
IndexType index (const cpgrid::Entity< cd > &e) const
 
template<class EntityType >
IndexType index (const EntityType &e) const
 
template<int cc>
IndexType subIndex (const cpgrid::Entity< 0 > &e, int i) const
 
IndexType subIndex (const cpgrid::Entity< 0 > &e, int i, unsigned int cc) const
 
template<int codim>
IndexType subIndex (const cpgrid::Entity< codim > &, int, unsigned int) const
 
template<class EntityType >
bool contains (const EntityType &e) const
 

Detailed Description

Template Parameters

Member Typedef Documentation

◆ IndexType

◆ Types

typedef std::vector<GeometryType> Dune::cpgrid::IndexSet::Types

Constructor & Destructor Documentation

◆ IndexSet() [1/2]

Dune::cpgrid::IndexSet::IndexSet ( )
inline
Parameters

◆ IndexSet() [2/2]

Dune::cpgrid::IndexSet::IndexSet ( std::size_t  numCells,
std::size_t  numPoints 
)
inline

◆ ~IndexSet()

Dune::cpgrid::IndexSet::~IndexSet ( )
inline

Destructor.

Member Function Documentation

◆ contains()

template<class EntityType >
bool Dune::cpgrid::IndexSet::contains ( const EntityType &  e) const
inline
Template Parameters

return

Parameters

References index(), and size().

◆ geomTypes()

const Types & Dune::cpgrid::IndexSet::geomTypes ( int  codim) const
inline
Parameters

return

◆ index() [1/2]

template<int cd>
IndexType Dune::cpgrid::IndexSet::index ( const cpgrid::Entity< cd > &  e) const
inline
Template Parameters

return

Parameters

References Dune::cpgrid::EntityRep< codim >::index().

Referenced by contains(), and subIndex().

◆ index() [2/2]

template<class EntityType >
IndexType Dune::cpgrid::IndexSet::index ( const EntityType &  e) const
inline
Template Parameters

return

Parameters

◆ size() [1/2]

int Dune::cpgrid::IndexSet::size ( GeometryType  type) const
inline
Parameters

return

References size().

Referenced by contains(), and size().

◆ size() [2/2]

int Dune::cpgrid::IndexSet::size ( int  codim) const
inline
Parameters

return

◆ subIndex() [1/3]

template<int cc>
IndexType Dune::cpgrid::IndexSet::subIndex ( const cpgrid::Entity< 0 > &  e,
int  i 
) const
inline
Template Parameters

return

Parameters

References index().

◆ subIndex() [2/3]

IndexType Dune::cpgrid::IndexSet::subIndex ( const cpgrid::Entity< 0 > &  e,
int  i,
unsigned int  cc 
) const
Template Parameters

return

Parameters

◆ subIndex() [3/3]

template<int codim>
IndexType Dune::cpgrid::IndexSet::subIndex ( const cpgrid::Entity< codim > &  ,
int  ,
unsigned int   
) const
inline

◆ types()

const Types & Dune::cpgrid::IndexSet::types ( int  codim) const
inline
Parameters

return


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