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 |
Reimplemented in Dune::PersistentContainer< ALU3dGrid< elType, Comm >, Data, Allocator >, Dune::PersistentContainer< ALU2dGrid< dim, dimworld, elType >, Data, Allocator >, Dune::PersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, Data, Allocator >, Dune::PersistentContainer< ALUSimplexGrid< dim, dimworld >, Data, Allocator >, Dune::PersistentContainer< ALUCubeGrid< dim, dimworld >, Data, Allocator >, Dune::PersistentContainer< AlbertaGrid< dim, dimworld >, Data, Allocator >, and Dune::PersistentContainer< ALUConformGrid< dim, dimworld >, Data, Allocator >.
typedef Vector :: iterator Dune::PersistentContainerVector< Grid, Index, Vector >::Iterator |
iterator type
Dune::PersistentContainerVector< Grid, Index, Vector >::PersistentContainerVector | ( | const GridType & | grid, |
const int | codim, | ||
const Index & | index, | ||
const double | overEstimate, | ||
const typename Vector::allocator_type & | allocator | ||
) | [inline] |
constructor creating vector container filled with default value
Dune::PersistentContainerVector< Grid, Index, Vector >::PersistentContainerVector | ( | const PersistentContainerVector< Grid, Index, Vector > & | other | ) | [inline] |
copy constructor
Iterator Dune::PersistentContainerVector< Grid, Index, Vector >::begin | ( | ) | [inline] |
const iterator begin
ConstIterator Dune::PersistentContainerVector< Grid, Index, Vector >::begin | ( | ) | const [inline] |
const iterator begin
void Dune::PersistentContainerVector< Grid, Index, Vector >::clear | ( | ) | [inline] |
adjust container to correct size and set all values to default
Iterator Dune::PersistentContainerVector< Grid, Index, Vector >::end | ( | ) | [inline] |
iterator end
ConstIterator Dune::PersistentContainerVector< Grid, Index, Vector >::end | ( | ) | const [inline] |
const iterator end
const Index& Dune::PersistentContainerVector< Grid, Index, Vector >::index | ( | ) | [inline] |
pass on index set used for Container
Data& Dune::PersistentContainerVector< Grid, Index, Vector >::operator() | ( | const ElementType & | element, |
const int | subEntity | ||
) | [inline] |
access for sub entity data
const Data& Dune::PersistentContainerVector< Grid, Index, Vector >::operator() | ( | const ElementType & | element, |
const int | subEntity | ||
) | const [inline] |
access for sub entity data
Data& Dune::PersistentContainerVector< Grid, Index, Vector >::operator[] | ( | const Entity & | entity | ) | [inline] |
random access to entity data with correct codimension
const Data& Dune::PersistentContainerVector< Grid, Index, Vector >::operator[] | ( | const Entity & | entity | ) | const [inline] |
random access to entity data with correct codimension
void Dune::PersistentContainerVector< Grid, Index, Vector >::reserve | ( | ) | [inline] |
enlarge container, compress is not necessary but could be done
size_t Dune::PersistentContainerVector< Grid, Index, Vector >::size | ( | ) | const [inline] |
return size of allocated data
void Dune::PersistentContainerVector< Grid, Index, Vector >::update | ( | ) | [inline] |
adjust container to correct size including compress
const int Dune::PersistentContainerVector< Grid, Index, Vector >::codim_ [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().
Vector Dune::PersistentContainerVector< Grid, Index, Vector >::data_ [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().
const Index& Dune::PersistentContainerVector< Grid, Index, Vector >::index_ [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().
const double Dune::PersistentContainerVector< Grid, Index, Vector >::overEstimate_ [protected] |