dune-grid
2.2.0
|
#include <dune/grid/alugrid/common/persistentcontainer.hh>
Public Types | |
typedef ALU3dGrid< elType, Comm > | GridType |
typedef std::vector< Data, Allocator >::value_type | Data |
typedef GridType::template Codim< 0 >::Entity | ElementType |
entity of codimension 0 | |
typedef std::vector< Data, Allocator >::iterator | Iterator |
iterator type | |
typedef std::vector< Data, Allocator >::const_iterator | ConstIterator |
const iterator type | |
Public Member Functions | |
PersistentContainer (const GridType &grid, const int codim, const Allocator &allocator=Allocator()) | |
const Data & | getData (const size_t idx) const |
const ALU3dGrid< elType, Comm > ::HierarchicIndexSet & | index () |
pass on index set used for Container | |
Data & | operator[] (const Entity &entity) |
random access to entity data with correct codimension | |
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 ALU3dGrid< elType, Comm > ::HierarchicIndexSet & | index_ |
const double | overEstimate_ |
std::vector< Data, Allocator > | data_ |
typedef std::vector< Data, Allocator > :: const_iterator Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::ConstIterator [inherited] |
const iterator type
typedef std::vector< Data, Allocator > ::value_type Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::Data [inherited] |
typedef GridType :: template Codim< 0 >:: Entity Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::ElementType [inherited] |
entity of codimension 0
typedef ALU3dGrid< elType, Comm > Dune::PersistentContainer< ALU3dGrid< elType, Comm >, Data, Allocator >::GridType |
typedef std::vector< Data, Allocator > :: iterator Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::Iterator [inherited] |
iterator type
Dune::PersistentContainer< ALU3dGrid< elType, Comm >, Data, Allocator >::PersistentContainer | ( | const GridType & | grid, |
const int | codim, | ||
const Allocator & | allocator = Allocator() |
||
) | [inline] |
Constructor filling the container with values using the default constructor Depending on the implementation this could be achieved without allocating memory
Iterator Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::begin | ( | ) | [inline, inherited] |
const iterator begin
References Dune::PersistentContainerVector< Grid, Index, Vector >::data_.
ConstIterator Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::begin | ( | ) | const [inline, inherited] |
const iterator begin
References Dune::PersistentContainerVector< Grid, Index, Vector >::data_.
void Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::clear | ( | ) | [inline, inherited] |
adjust container to correct size and set all values to default
References Dune::PersistentContainerVector< Grid, Index, Vector >::codim_, Dune::PersistentContainerVector< Grid, Index, Vector >::data_, and Dune::PersistentContainerVector< Grid, Index, Vector >::index_.
Iterator Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::end | ( | ) | [inline, inherited] |
iterator end
References Dune::PersistentContainerVector< Grid, Index, Vector >::data_.
ConstIterator Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::end | ( | ) | const [inline, inherited] |
const iterator end
References Dune::PersistentContainerVector< Grid, Index, Vector >::data_.
const Data& Dune::PersistentContainer< ALU3dGrid< elType, Comm >, Data, Allocator >::getData | ( | const size_t | idx | ) | const [inline] |
this method is needed for the level communication of ALU3dGrid, see datahandle.hh
const ALU3dGrid< elType, Comm >::HierarchicIndexSet & Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::index | ( | ) | [inline, inherited] |
pass on index set used for Container
References Dune::PersistentContainerVector< Grid, Index, Vector >::index_.
Data& Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator() | ( | const ElementType & | element, |
const int | subEntity | ||
) | [inline, inherited] |
access for sub entity data
References Dune::PersistentContainerVector< Grid, Index, Vector >::codim_, Dune::PersistentContainerVector< Grid, Index, Vector >::data_, and Dune::PersistentContainerVector< Grid, Index, Vector >::index_.
const Data& Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator() | ( | const ElementType & | element, |
const int | subEntity | ||
) | const [inline, inherited] |
access for sub entity data
References Dune::PersistentContainerVector< Grid, Index, Vector >::codim_, Dune::PersistentContainerVector< Grid, Index, Vector >::data_, and Dune::PersistentContainerVector< Grid, Index, Vector >::index_.
Data& Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator[] | ( | const Entity & | entity | ) | [inline, inherited] |
random access to entity data with correct codimension
References Dune::PersistentContainerVector< Grid, Index, Vector >::codim_, Dune::Entity< cd, dim, GridImp, EntityImp >::codimension, Dune::PersistentContainerVector< Grid, Index, Vector >::data_, and Dune::PersistentContainerVector< Grid, Index, Vector >::index_.
const Data& Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator[] | ( | const Entity & | entity | ) | const [inline, inherited] |
random access to entity data with correct codimension
References Dune::PersistentContainerVector< Grid, Index, Vector >::codim_, Dune::Entity< cd, dim, GridImp, EntityImp >::codimension, Dune::PersistentContainerVector< Grid, Index, Vector >::data_, and Dune::PersistentContainerVector< Grid, Index, Vector >::index_.
void Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::reserve | ( | ) | [inline, inherited] |
enlarge container, compress is not necessary but could be done
References Dune::PersistentContainerVector< Grid, Index, Vector >::codim_, Dune::PersistentContainerVector< Grid, Index, Vector >::data_, Dune::PersistentContainerVector< Grid, Index, Vector >::index_, and Dune::PersistentContainerVector< Grid, Index, Vector >::update().
size_t Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::size | ( | ) | const [inline, inherited] |
return size of allocated data
References Dune::PersistentContainerVector< Grid, Index, Vector >::data_.
void Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::update | ( | ) | [inline, inherited] |
adjust container to correct size including compress
References Dune::PersistentContainerVector< Grid, Index, Vector >::codim_, Dune::PersistentContainerVector< Grid, Index, Vector >::data_, Dune::PersistentContainerVector< Grid, Index, Vector >::index_, and Dune::PersistentContainerVector< Grid, Index, Vector >::overEstimate_.
const int Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::codim_ [protected, inherited] |
std::vector< Data, Allocator > Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::data_ [protected, inherited] |
const ALU3dGrid< elType, Comm >::HierarchicIndexSet & Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::index_ [protected, inherited] |
const double Dune::PersistentContainerVector< ALU3dGrid< elType, Comm > , ALU3dGrid< elType, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::overEstimate_ [protected, inherited] |