#include <dune/grid/alugrid/common/persistentcontainer.hh>
Public Types |
typedef ALUGrid< dim, dimworld,
eltype, refinementtype, 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 ALUGrid< dim, dimworld,
eltype, refinementtype, 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 ALUGrid< dim, dimworld,
eltype, refinementtype, Comm >
::HierarchicIndexSet & | index_ |
const double | overEstimate_ |
std::vector< Data, Allocator > | data_ |
Member Typedef Documentation
typedef std::vector< Data, Allocator > :: const_iterator Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::ConstIterator |
|
inherited |
typedef std::vector< Data, Allocator > ::value_type Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::Data |
|
inherited |
typedef GridType :: template Codim< 0 >:: Entity Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::ElementType |
|
inherited |
template<int dim, int dimworld, ALUGridElementType eltype, ALUGridRefinementType refinementtype, class Comm , class Data , class Allocator >
typedef ALUGrid< dim, dimworld, eltype, refinementtype, Comm > Dune::PersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, Data, Allocator >::GridType |
typedef std::vector< Data, Allocator > :: iterator Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::Iterator |
|
inherited |
Constructor & Destructor Documentation
template<int dim, int dimworld, ALUGridElementType eltype, ALUGridRefinementType refinementtype, class Comm , class Data , class Allocator >
Constructor filling the container with values using the default constructor Depending on the implementation this could be achieved without allocating memory
Member Function Documentation
Iterator Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::begin |
( |
| ) |
|
|
inlineinherited |
ConstIterator Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::begin |
( |
| ) |
const |
|
inlineinherited |
void Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::clear |
( |
| ) |
|
|
inlineinherited |
adjust container to correct size and set all values to default
Iterator Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::end |
( |
| ) |
|
|
inlineinherited |
ConstIterator Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::end |
( |
| ) |
const |
|
inlineinherited |
const ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet & Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::index |
( |
| ) |
|
|
inlineinherited |
pass on index set used for Container
Data& Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator() |
( |
const ElementType & |
element, |
|
|
const int |
subEntity |
|
) |
| |
|
inlineinherited |
access for sub entity data
const Data& Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator() |
( |
const ElementType & |
element, |
|
|
const int |
subEntity |
|
) |
| const |
|
inlineinherited |
access for sub entity data
Data& Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator[] |
( |
const Entity & |
entity | ) |
|
|
inlineinherited |
random access to entity data with correct codimension
const Data& Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator[] |
( |
const Entity & |
entity | ) |
const |
|
inlineinherited |
random access to entity data with correct codimension
void Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::reserve |
( |
| ) |
|
|
inlineinherited |
enlarge container, compress is not necessary but could be done
size_t Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::size |
( |
| ) |
const |
|
inlineinherited |
return size of allocated data
void Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::update |
( |
| ) |
|
|
inlineinherited |
adjust container to correct size including compress
Member Data Documentation
const int Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::codim_ |
|
protectedinherited |
std::vector< Data, Allocator > Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::data_ |
|
protectedinherited |
const ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet & Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::index_ |
|
protectedinherited |
const double Dune::PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > , ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet , std::vector< Data, Allocator > >::overEstimate_ |
|
protectedinherited |
The documentation for this class was generated from the following file: