dune-grid
2.2.0
|
An implementation for the PersistentContainer based on a container satisfying the std::vector interface and using a class providing an IndexSet for storing the Data. More...
#include <dune/grid/utility/persistentcontainer.hh>
Public Types | |
typedef Vector::value_type | Data |
typedef Grid | GridType |
typedef GridType::template Codim< 0 >::Entity | ElementType |
entity of codimension 0 | |
typedef Vector::iterator | Iterator |
iterator type | |
typedef Vector::const_iterator | ConstIterator |
const iterator type |
Public Member Functions | |
PersistentContainerVector (const GridType &grid, const int codim, const Index &index, const double overEstimate, const typename Vector::allocator_type &allocator) | |
constructor creating vector container filled with default value | |
PersistentContainerVector (const PersistentContainerVector &other) | |
copy constructor | |
const Index & | index () |
pass on index set used for Container | |
template<class Entity > | |
Data & | operator[] (const Entity &entity) |
random access to entity data with correct codimension | |
template<class Entity > | |
const Data & | operator[] (const Entity &entity) const |
random access to entity data with correct codimension | |
Data & | operator() (const ElementType &element, const int subEntity) |
access for sub entity data | |
const Data & | operator() (const ElementType &element, const int subEntity) const |
access for sub entity data | |
Iterator | begin () |
const iterator begin | |
ConstIterator | begin () const |
const iterator begin | |
Iterator | end () |
iterator end | |
ConstIterator | end () const |
const iterator end | |
size_t | size () const |
return size of allocated data | |
void | reserve () |
enlarge container, compress is not necessary but could be done | |
void | clear () |
adjust container to correct size and set all values to default | |
void | update () |
adjust container to correct size including compress |
Protected Attributes | |
const int | codim_ |
const Index & | index_ |
const double | overEstimate_ |
Vector | data_ |
An implementation for the PersistentContainer based on a container satisfying the std::vector interface and using a class providing an IndexSet for storing the Data.
typedef Vector :: const_iterator Dune::PersistentContainerVector< Grid, Index, Vector >::ConstIterator |
const iterator type
typedef Vector::value_type Dune::PersistentContainerVector< Grid, Index, Vector >::Data |
typedef GridType :: template Codim< 0 >:: Entity Dune::PersistentContainerVector< Grid, Index, Vector >::ElementType |
entity of codimension 0
typedef Grid Dune::PersistentContainerVector< Grid, Index, Vector >::GridType |
typedef Vector :: iterator Dune::PersistentContainerVector< Grid, Index, Vector >::Iterator |
iterator type
|
inline |
constructor creating vector container filled with default value
|
inline |
copy constructor
|
inline |
const iterator begin
|
inline |
const iterator begin
|
inline |
adjust container to correct size and set all values to default
|
inline |
iterator end
|
inline |
const iterator end
|
inline |
pass on index set used for Container
|
inline |
access for sub entity data
|
inline |
access for sub entity data
|
inline |
random access to entity data with correct codimension
|
inline |
random access to entity data with correct codimension
|
inline |
enlarge container, compress is not necessary but could be done
|
inline |
return size of allocated data
|
inline |
adjust container to correct size including compress
|
protected |
Referenced by Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::clear(), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::operator()(), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::operator[](), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::reserve(), and Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::update().
|
protected |
Referenced by Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::begin(), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::clear(), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::end(), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::operator()(), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::operator[](), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::reserve(), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::size(), and Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::update().
|
protected |
Referenced by Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::clear(), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::index(), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::operator()(), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::operator[](), Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::reserve(), and Dune::PersistentContainerVector< ALU3dGrid< elType, Comm >, ALU3dGrid< elType, Comm >::HierarchicIndexSet, std::vector< Data, Allocator > >::update().
|
protected |