dune-grid
2.2.0
|
#include <dune/grid/alugrid/common/persistentcontainer.hh>
Public Types | |
typedef ALUConformGrid< dim, dimworld > | 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 ALUConformGrid< dim, dimworld >::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 ALUConformGrid< dim, dimworld >::HierarchicIndexSet & | index_ |
const double | overEstimate_ |
std::vector< Data, Allocator > | data_ |
|
inherited |
const iterator type
|
inherited |
|
inherited |
entity of codimension 0
typedef ALUConformGrid< dim, dimworld > Dune::PersistentContainer< ALUConformGrid< 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
|
inlineinherited |
const iterator begin
|
inlineinherited |
adjust container to correct size and set all values to default
|
inlineinherited |
iterator end
|
inlineinherited |
const iterator end
|
inlineinherited |
pass on index set used for Container
|
inlineinherited |
access for sub entity data
|
inlineinherited |
access for sub entity data
|
inlineinherited |
random access to entity data with correct codimension
|
inlineinherited |
random access to entity data with correct codimension
|
inlineinherited |
enlarge container, compress is not necessary but could be done
|
inlineinherited |
return size of allocated data
|
inlineinherited |
adjust container to correct size including compress
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |