|
dune-fem 2.12-git
|
#include <dune/fem/gridpart/codimindexset.hh>
Public Types | |
| typedef Fem::CommunicationIndexMap::IndexType | IndexType |
Public Member Functions | |
| CodimIndexSet (const GridType &grid, const int codim, const double memoryFactor=1.1) | |
| Constructor taking memory factor (default = 1.1) | |
| void | setMemoryFactor (const double memoryFactor) |
| set memory overestimation factor | |
| void | resize () |
| reallocate the vectors | |
| void | prepareCompress () |
| prepare for setup (nothing to do here) | |
| void | clear () |
| clear set | |
| void | resetUsed () |
| set all entries to unused | |
| bool | consecutive () |
| void | checkConsecutive () |
| set all entries to unused | |
| void | clearHoles () |
| clear holes, i.e. set number of holes to zero | |
| bool | compress () |
| IndexType | additionalSizeEstimate () const |
| return how much extra memory is needed for restriction | |
| IndexType | size () const |
| return size of grid entities per level and codim | |
| IndexType | realSize () const |
| return size of grid entities per level and codim | |
| template<class EntityType > | |
| IndexType | index (const EntityType &entity) const |
| return leaf index for given entity | |
| template<class EntityType > | |
| IndexType | subIndex (const EntityType &entity, const int subNumber) const |
| return leaf index for given entity | |
| template<class EntityType > | |
| IndexType | subIndex (const EntityType &entity, const int subNumber, const std::integral_constant< bool, false > codim0) const |
| return leaf index for given entity | |
| template<class EntityType > | |
| IndexType | subIndex (const EntityType &entity, const int subNumber, const std::integral_constant< bool, true > codim0) const |
| return leaf index for given entity | |
| template<class EntityType > | |
| bool | exists (const EntityType &entity) const |
| return state of index for given hierarchic number | |
| template<class EntityType > | |
| bool | exists (const EntityType &entity, const int subNumber) const |
| IndexType | numberOfHoles () const |
| return number of holes | |
| IndexType | oldIndex (IndexType elNum) const |
| return old index, for dof manager only | |
| IndexType | newIndex (IndexType elNum) const |
| return new index, for dof manager only returns index | |
| 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< GridType > | ThisType |
| typedef unsigned char | INDEXSTATE |
| typedef DynamicArray< IndexType > | IndexArrayType |
| typedef DynamicArray< INDEXSTATE > | IndexStateArrayType |
| typedef PersistentContainer< GridType, IndexType > | IndexContainerType |
Protected Member Functions | |
| bool | checkValidIndex (const IndexType &idx) const |
| void | insertIdx (IndexType &index) |
Protected Attributes | |
| const GridType & | grid_ |
| const INDEXSTATE | stateUnused_ = 0 |
| const INDEXSTATE | stateUsed_ = 1 |
| const INDEXSTATE | stateNew_ = 2 |
| IndexContainerType | leafIndex_ |
| IndexStateArrayType | indexState_ |
| IndexArrayType | holes_ |
| IndexArrayType | oldIdx_ |
| IndexArrayType | newIdx_ |
| IndexType | lastSize_ |
| const int | myCodim_ |
| IndexType | numberHoles_ |
Member Typedef Documentation
◆ GridType
|
protected |
◆ IndexArrayType
|
protected |
◆ IndexContainerType
|
protected |
◆ INDEXSTATE
|
protected |
◆ IndexStateArrayType
|
protected |
◆ IndexType
| typedef Fem::CommunicationIndexMap::IndexType Dune::Fem::CodimIndexSet< GridImp >::IndexType |
◆ ThisType
|
protected |
Constructor & Destructor Documentation
◆ CodimIndexSet()
|
inline |
Constructor taking memory factor (default = 1.1)
Member Function Documentation
◆ additionalSizeEstimate()
|
inline |
return how much extra memory is needed for restriction
◆ checkConsecutive()
|
inline |
set all entries to unused
◆ checkValidIndex()
|
inlineprotected |
◆ clear()
|
inline |
clear set
◆ clearHoles()
|
inline |
clear holes, i.e. set number of holes to zero
◆ compress()
|
inline |
make to index numbers consecutive return true, if at least one hole was closed
◆ consecutive()
|
inline |
◆ exists() [1/2]
|
inline |
return state of index for given hierarchic number
◆ exists() [2/2]
|
inline |
◆ index()
|
inline |
return leaf index for given entity
◆ insert()
|
inline |
◆ insertGhost()
|
inline |
◆ insertIdx()
|
inlineprotected |
◆ insertSubEntity()
|
inline |
◆ invalidIndex()
|
inlinestatic |
◆ markForRemoval()
|
inline |
◆ newIndex()
|
inline |
return new index, for dof manager only returns index
◆ numberOfHoles()
|
inline |
return number of holes
◆ oldIndex()
|
inline |
return old index, for dof manager only
◆ prepareCompress()
|
inline |
prepare for setup (nothing to do here)
◆ print()
|
inline |
◆ read()
|
inline |
◆ realSize()
|
inline |
return size of grid entities per level and codim
◆ resetUsed()
|
inline |
set all entries to unused
◆ resize()
|
inline |
reallocate the vectors
◆ setMemoryFactor()
|
inline |
set memory overestimation factor
◆ size()
|
inline |
return size of grid entities per level and codim
◆ subIndex() [1/3]
|
inline |
return leaf index for given entity
◆ subIndex() [2/3]
|
inline |
return leaf index for given entity
◆ subIndex() [3/3]
|
inline |
return leaf index for given entity
◆ validIndex()
|
inline |
◆ write()
|
inline |
Member Data Documentation
◆ grid_
|
protected |
◆ holes_
|
protected |
◆ indexState_
|
protected |
◆ lastSize_
|
protected |
◆ leafIndex_
|
protected |
◆ myCodim_
|
protected |
◆ newIdx_
|
protected |
◆ numberHoles_
|
protected |
◆ oldIdx_
|
protected |
◆ stateNew_
|
protected |
◆ stateUnused_
|
protected |
◆ stateUsed_
|
protected |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8