dune-fem  2.4.1-rc
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::CodimIndexSet< GridImp > Class Template Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/gridpart/codimindexset.hh>

Public Types

typedef int IndexType
 

Public Member Functions

 CodimIndexSet (const GridType &grid, const int codim, const double memoryFactor=1.1)
 Constructor taking memory factor (default = 1.1) More...
 
void setMemoryFactor (const double memoryFactor)
 set memory overestimation factor More...
 
void resize ()
 reallocate the vectors More...
 
void prepareCompress ()
 prepare for setup (nothing to do here) More...
 
void clear ()
 clear set More...
 
void resetUsed ()
 set all entries to unused More...
 
bool consecutive ()
 
void checkConsecutive ()
 set all entries to unused More...
 
void clearHoles ()
 clear holes, i.e. set number of holes to zero More...
 
bool compress ()
 
IndexType additionalSizeEstimate () const
 return how much extra memory is needed for restriction More...
 
IndexType size () const
 return size of grid entities per level and codim More...
 
IndexType realSize () const
 return size of grid entities per level and codim More...
 
template<class EntityType >
IndexType index (const EntityType &entity) const
 return leaf index for given entity More...
 
template<class EntityType >
IndexType subIndex (const EntityType &entity, const int subNumber) const
 return leaf index for given entity More...
 
template<class EntityType >
bool exists (const EntityType &entity) const
 return state of index for given hierarchic number More...
 
template<class EntityType >
bool exists (const EntityType &entity, const int subNumber) const
 
IndexType numberOfHoles () const
 return number of holes More...
 
IndexType oldIndex (int elNum) const
 return old index, for dof manager only More...
 
IndexType newIndex (int elNum) const
 return new index, for dof manager only returns index More...
 
template<class EntityType >
void insert (const EntityType &entity)
 
template<class EntityType >
void insertSubEntity (const EntityType &entity, const int subNumber)
 
template<class EntityType >
void insertGhost (const EntityType &entity)
 
template<class EntityType >
void markForRemoval (const EntityType &entity)
 
template<class EntityType >
bool validIndex (const EntityType &entity) const
 
void print (std::ostream &out) const
 
template<class StreamTraits >
bool write (OutStreamInterface< StreamTraits > &out) const
 
template<class StreamTraits >
bool read (InStreamInterface< StreamTraits > &in)
 

Static Public Member Functions

static IndexType invalidIndex ()
 

Protected Types

typedef GridImp GridType
 
typedef CodimIndexSet< GridTypeThisType
 
typedef MutableArray< IndexTypeIndexArrayType
 
typedef MutableArray< INDEXSTATE > IndexStateArrayType
 
typedef PersistentContainer< GridType, IndexTypeIndexContainerType
 

Protected Member Functions

bool checkValidIndex (const IndexType &idx) const
 
void insertIdx (IndexType &index)
 

Protected Attributes

IndexContainerType leafIndex_
 
IndexStateArrayType indexState_
 
IndexArrayType holes_
 
IndexArrayType oldIdx_
 
IndexArrayType newIdx_
 
IndexType lastSize_
 
const int myCodim_
 
IndexType numberHoles_
 

Member Typedef Documentation

template<class GridImp >
typedef GridImp Dune::Fem::CodimIndexSet< GridImp >::GridType
protected
template<class GridImp >
typedef MutableArray< IndexType > Dune::Fem::CodimIndexSet< GridImp >::IndexArrayType
protected
template<class GridImp >
typedef PersistentContainer< GridType, IndexType > Dune::Fem::CodimIndexSet< GridImp >::IndexContainerType
protected
template<class GridImp >
typedef MutableArray< INDEXSTATE > Dune::Fem::CodimIndexSet< GridImp >::IndexStateArrayType
protected
template<class GridImp >
typedef int Dune::Fem::CodimIndexSet< GridImp >::IndexType
template<class GridImp >
typedef CodimIndexSet< GridType > Dune::Fem::CodimIndexSet< GridImp >::ThisType
protected

Constructor & Destructor Documentation

template<class GridImp >
Dune::Fem::CodimIndexSet< GridImp >::CodimIndexSet ( const GridType grid,
const int  codim,
const double  memoryFactor = 1.1 
)
inline

Constructor taking memory factor (default = 1.1)

References Dune::Fem::CodimIndexSet< GridImp >::setMemoryFactor().

Member Function Documentation

template<class GridImp >
IndexType Dune::Fem::CodimIndexSet< GridImp >::additionalSizeEstimate ( ) const
inline

return how much extra memory is needed for restriction

References Dune::Fem::StaticArray< T >::size().

template<class GridImp >
void Dune::Fem::CodimIndexSet< GridImp >::checkConsecutive ( )
inline
template<class GridImp >
bool Dune::Fem::CodimIndexSet< GridImp >::checkValidIndex ( const IndexType idx) const
inlineprotected
template<class GridImp >
void Dune::Fem::CodimIndexSet< GridImp >::clear ( )
inline
template<class GridImp >
void Dune::Fem::CodimIndexSet< GridImp >::clearHoles ( )
inline

clear holes, i.e. set number of holes to zero

References Dune::Fem::StaticArray< T >::size().

template<class GridImp >
bool Dune::Fem::CodimIndexSet< GridImp >::compress ( )
inline
template<class GridImp >
bool Dune::Fem::CodimIndexSet< GridImp >::consecutive ( )
inline
template<class GridImp >
template<class EntityType >
bool Dune::Fem::CodimIndexSet< GridImp >::exists ( const EntityType &  entity) const
inline
template<class GridImp >
template<class EntityType >
bool Dune::Fem::CodimIndexSet< GridImp >::exists ( const EntityType &  entity,
const int  subNumber 
) const
inline
template<class GridImp >
template<class EntityType >
IndexType Dune::Fem::CodimIndexSet< GridImp >::index ( const EntityType &  entity) const
inline
template<class GridImp >
template<class EntityType >
void Dune::Fem::CodimIndexSet< GridImp >::insert ( const EntityType &  entity)
inline
template<class GridImp >
template<class EntityType >
void Dune::Fem::CodimIndexSet< GridImp >::insertGhost ( const EntityType &  entity)
inline
template<class GridImp >
void Dune::Fem::CodimIndexSet< GridImp >::insertIdx ( IndexType index)
inlineprotected
template<class GridImp >
template<class EntityType >
void Dune::Fem::CodimIndexSet< GridImp >::insertSubEntity ( const EntityType &  entity,
const int  subNumber 
)
inline
template<class GridImp >
static IndexType Dune::Fem::CodimIndexSet< GridImp >::invalidIndex ( )
inlinestatic
template<class GridImp >
template<class EntityType >
void Dune::Fem::CodimIndexSet< GridImp >::markForRemoval ( const EntityType &  entity)
inline
template<class GridImp >
IndexType Dune::Fem::CodimIndexSet< GridImp >::newIndex ( int  elNum) const
inline

return new index, for dof manager only returns index

References Dune::Fem::StaticArray< T >::size().

template<class GridImp >
IndexType Dune::Fem::CodimIndexSet< GridImp >::numberOfHoles ( ) const
inline

return number of holes

References Dune::Fem::CodimIndexSet< GridImp >::numberHoles_.

template<class GridImp >
IndexType Dune::Fem::CodimIndexSet< GridImp >::oldIndex ( int  elNum) const
inline

return old index, for dof manager only

References Dune::Fem::StaticArray< T >::size().

template<class GridImp >
void Dune::Fem::CodimIndexSet< GridImp >::prepareCompress ( )
inline

prepare for setup (nothing to do here)

template<class GridImp >
void Dune::Fem::CodimIndexSet< GridImp >::print ( std::ostream &  out) const
inline
template<class GridImp >
template<class StreamTraits >
bool Dune::Fem::CodimIndexSet< GridImp >::read ( InStreamInterface< StreamTraits > &  in)
inline
template<class GridImp >
IndexType Dune::Fem::CodimIndexSet< GridImp >::realSize ( ) const
inline

return size of grid entities per level and codim

template<class GridImp >
void Dune::Fem::CodimIndexSet< GridImp >::resetUsed ( )
inline
template<class GridImp >
void Dune::Fem::CodimIndexSet< GridImp >::resize ( )
inline

reallocate the vectors

References Dune::Fem::CodimIndexSet< GridImp >::invalidIndex().

template<class GridImp >
void Dune::Fem::CodimIndexSet< GridImp >::setMemoryFactor ( const double  memoryFactor)
inline
template<class GridImp >
IndexType Dune::Fem::CodimIndexSet< GridImp >::size ( ) const
inline
template<class GridImp >
template<class EntityType >
IndexType Dune::Fem::CodimIndexSet< GridImp >::subIndex ( const EntityType &  entity,
const int  subNumber 
) const
inline
template<class GridImp >
template<class EntityType >
bool Dune::Fem::CodimIndexSet< GridImp >::validIndex ( const EntityType &  entity) const
inline
template<class GridImp >
template<class StreamTraits >
bool Dune::Fem::CodimIndexSet< GridImp >::write ( OutStreamInterface< StreamTraits > &  out) const
inline

Member Data Documentation

template<class GridImp >
IndexArrayType Dune::Fem::CodimIndexSet< GridImp >::holes_
protected
template<class GridImp >
IndexStateArrayType Dune::Fem::CodimIndexSet< GridImp >::indexState_
protected
template<class GridImp >
IndexType Dune::Fem::CodimIndexSet< GridImp >::lastSize_
protected
template<class GridImp >
IndexContainerType Dune::Fem::CodimIndexSet< GridImp >::leafIndex_
protected
template<class GridImp >
const int Dune::Fem::CodimIndexSet< GridImp >::myCodim_
protected
template<class GridImp >
IndexArrayType Dune::Fem::CodimIndexSet< GridImp >::newIdx_
protected
template<class GridImp >
IndexType Dune::Fem::CodimIndexSet< GridImp >::numberHoles_
protected
template<class GridImp >
IndexArrayType Dune::Fem::CodimIndexSet< GridImp >::oldIdx_
protected

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