dune-grid
2.4.1-rc2
|
vector-based implementation of the PersistentContainer More...
#include <dune/grid/utility/persistentcontainervector.hh>
Public Types | |
typedef G | Grid |
typedef Vector::value_type | Value |
typedef Vector::size_type | Size |
typedef Vector::const_iterator | ConstIterator |
typedef Vector::iterator | Iterator |
typedef Vector::allocator_type | Allocator |
Public Member Functions | |
PersistentContainerVector (const IndexSet &indexSet, int codim, const Value &value, const Allocator &allocator=Allocator()) | |
template<class Entity > | |
const Value & | operator[] (const Entity &entity) const |
template<class Entity > | |
Value & | operator[] (const Entity &entity) |
template<class Entity > | |
const Value & | operator() (const Entity &entity, int subEntity) const |
template<class Entity > | |
Value & | operator() (const Entity &entity, int subEntity) |
Size | size () const |
void | resize (const Value &value=Value()) |
void | shrinkToFit () |
void | fill (const Value &value) |
void | swap (This &other) |
ConstIterator | begin () const |
Iterator | begin () |
ConstIterator | end () const |
Iterator | end () |
int | codimension () const |
Protected Member Functions | |
const IndexSet & | indexSet () const |
Protected Attributes | |
int | codim_ |
const IndexSet * | indexSet_ |
Vector | data_ |
vector-based implementation of the PersistentContainer
Some grid implementations, like YaspGrid, can provide consecutive, zero-based, persistent indices for the entire grid hierarchy. This implementation of a PersistentContainer uses such an index set and a std::vector-like container to store user data in an efficient and persistent manner.
G | type of grid |
IndexSet | type of persistent index set |
Vector | type of vector to store the data in |
typedef Vector::allocator_type Dune::PersistentContainerVector< G, IndexSet, Vector >::Allocator |
typedef Vector::const_iterator Dune::PersistentContainerVector< G, IndexSet, Vector >::ConstIterator |
typedef G Dune::PersistentContainerVector< G, IndexSet, Vector >::Grid |
typedef Vector::iterator Dune::PersistentContainerVector< G, IndexSet, Vector >::Iterator |
typedef Vector::size_type Dune::PersistentContainerVector< G, IndexSet, Vector >::Size |
typedef Vector::value_type Dune::PersistentContainerVector< G, IndexSet, Vector >::Value |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::operator()(), Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::operator[](), and Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::resize().
|
inline |
|
inline |
|
inline |
|
inlineprotected |
Referenced by Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::operator()(), Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::operator[](), and Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::resize().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Referenced by Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::codimension(), and Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::swap().
|
protected |
Referenced by Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::begin(), Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::end(), Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::operator()(), Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::operator[](), Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::resize(), Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::size(), and Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::swap().
|
protected |
Referenced by Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::indexSet(), and Dune::PersistentContainerVector< YaspGrid< dim, CoordCont >, YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >, std::vector< T > >::swap().