Dune Core Modules (2.6.0)
Dune::PersistentContainerVector< G, IndexSet, Vector > Class Template Reference
vector-based implementation of the PersistentContainer More...
#include <dune/grid/utility/persistentcontainervector.hh>
Detailed Description
template<class G, class IndexSet, class Vector>
class Dune::PersistentContainerVector< G, IndexSet, Vector >
class Dune::PersistentContainerVector< G, IndexSet, Vector >
vector-based implementation of the PersistentContainer
Some grid implementations, like YaspGrid, can provide consecutive, zero-based, persistent indices for the entire grid hierarchy. This implementation of a PersistentContainer uses such an index set and a std::vector-like container to store user data in an efficient and persistent manner.
- Note
- The persistent index set is actually allowed to be non-consecutive, i.e., some indices might not be assigned to an entity. As the result of the size method on the index set is used to allocate storage for the vector, it must be larger than the largest used index.
- It is sufficient if the index set provides indices to the codimension the persistent container is created for. Neither the method types() nor the method contains() need to be implemented.
- The persistent container is currently restricted to index sets containing a single geometry type.
- Todo:
- Actually, we use a mapper rather than an index set. This would automatically resolve two problems:
- support multiple geometry types,
- the requirement to store a reference to the index set .
- Template Parameters
-
G type of grid IndexSet type of persistent index set Vector type of vector to store the data in
The documentation for this class was generated from the following file:
- dune/grid/utility/persistentcontainervector.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 24, 23:30, 2024)