dune-grid  2.1.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
Dune::DefaultEmptyIndexSet Class Reference

#include <dune/grid/alugrid/common/defaultindexsets.hh>

Inheritance diagram for Dune::DefaultEmptyIndexSet:
Inheritance graph

List of all members.

Public Member Functions

 DefaultEmptyIndexSet (bool adaptive)
 default constructor
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 ()

Protected Member Functions

bool processXdr (XDR *xdrs)

Protected Attributes

const bool adaptive_

Detailed Description

The DefaultGridIndexSet is a wrapper for the grid index which can be index of entity or globalIndex. The DofMapper uses an IndexSet for mapping the dofs, so we can hide the real grid index behind the index set. Furthermore if a grid doesn't provide the consecutive index set then this can be calculated in the IndexSet. These two following index sets are just the identiy to the grid indices.

The DefaultGridIndexSetBase defines some methods that are needed for index sets that cope with adaptation, but aren't needed for the following index set, so most of this methods do notin'.


Constructor & Destructor Documentation

default constructor


Member Function Documentation

bool Dune::DefaultEmptyIndexSet::adaptive ( ) const [inline]

returns true if index set can be used for adaptive calculations

References adaptive_.

no extra memory for restriction is needed

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

template<class EntityType >
void Dune::DefaultEmptyIndexSet::insertNewIndex ( const EntityType &  en) [inline]

do nothing here, because fathers index should already exist

References adaptive_.

returns true if index set gernally needs compress after adaptation

int Dune::DefaultEmptyIndexSet::newIndex ( int  hole,
int  codim 
) const [inline]

return new index, for dof manager only

int Dune::DefaultEmptyIndexSet::numberOfHoles ( int  codim) const [inline]

we have no old size

int Dune::DefaultEmptyIndexSet::oldIndex ( int  hole,
int  codim 
) const [inline]

return old index, for dof manager only

bool Dune::DefaultEmptyIndexSet::processXdr ( XDR *  xdrs) [inline, protected]

References type().

Referenced by read_xdr(), and write_xdr().

bool Dune::DefaultEmptyIndexSet::read_xdr ( const std::basic_string< char >  filename,
int  timestep 
) [inline]

read index set to xdr file

References processXdr().

template<class EntityType >
void Dune::DefaultEmptyIndexSet::removeOldIndex ( const EntityType &  en) [inline]

do nothing here, because fathers index should already exist

References adaptive_.

nothing to do here

static int Dune::DefaultEmptyIndexSet::type ( ) [inline, static]

Referenced by processXdr().

bool Dune::DefaultEmptyIndexSet::write_xdr ( const std::basic_string< char >  filename,
int  timestep 
) [inline]

write index set to xdr file

References processXdr().


Member Data Documentation

const bool Dune::DefaultEmptyIndexSet::adaptive_ [protected]

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