Dune::WrappedHierarchicIndexSet< GridType > Class Template Reference

#include <defaultindexsets.hh>

Inheritance diagram for Dune::WrappedHierarchicIndexSet< GridType >:

Dune::IndexSetWrapper< IndexSetImp > Dune::DefaultEmptyIndexSet

List of all members.


Detailed Description

template<class GridType>
class Dune::WrappedHierarchicIndexSet< GridType >

Wraps HierarchicIndex Sets of AlbertaGrid and ALUGrid.


Public Types

enum  
 number of codimensions

Public Member Functions

 WrappedHierarchicIndexSet (const GridType &grid, const int level=-1)
 constructor
int size (GeometryType type) const
 return size of set for codim
int size (int codim) const
 return size of grid entities per level and codim
template<class EntityType>
int index (const EntityType &en) const
 return index of en
template<int codim, class EntityType>
int index (const EntityType &en, int num) const
 return index
template<int codim, class EntityType>
int subIndex (const EntityType &en, int num) const
 return sub index of given entities sub entity with codim and number
const std::vector< GeometryType > & geomTypes (int codim) const
 wrap geomTypes method of set
template<class EntityType>
bool contains (const EntityType &en) const
 returns true if this set provides an index for given entity
template<int cd, PartitionIteratorType pitype>
Codim< cd >::template
Partition< pitype >::Iterator 
begin () const
 Iterator to first entity of given codimension and partition type.
template<int cd, PartitionIteratorType pitype>
Codim< cd >::template
Partition< pitype >::Iterator 
end () const
 Iterator to one past the last entity of given codim for partition type.
bool compress ()
bool adaptive () const
 returns true if index set can be used for adaptive calculations
bool needsCompress () const
 returns true if index set gernally needs compress after adaptation
template<class EntityType>
void insertNewIndex (const EntityType &en)
 do nothing here, because fathers index should already exist
template<class EntityType>
void removeOldIndex (const EntityType &en)
 do nothing here, because fathers index should already exist
void resize ()
 nothing to do here
int additionalSizeEstimate () const
 no extra memory for restriction is needed
int numberOfHoles (int codim) const
 we have no old size
int oldIndex (int hole, int codim) const
 return old index, for dof manager only
int newIndex (int hole, int codim) const
 return new index, for dof manager only
bool write_xdr (const std::basic_string< char > filename, int timestep)
 write index set to xdr file
bool read_xdr (const std::basic_string< char > filename, int timestep)
 read index set to xdr file

Static Public Member Functions

static int type ()
 return type (for Grape In/Output)
static ThisTypeinstance (const GridType &grid)
 returns reference to singleton


Member Function Documentation

bool Dune::DefaultEmptyIndexSet::compress (  )  [inline, inherited]

return false mean the no memory has to be allocated and no compress of date has to be done


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

Generated on Tue Jul 28 22:28:31 2009 for dune-grid by  doxygen 1.5.6