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