dune-grid  2.3.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Dune::PersistentContainerVector< G, IndexSet, Vector > Class Template Reference

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
 
typedef Grid GridType
 
typedef Value Data
 

Public Member Functions

 PersistentContainerVector (const IndexSet &indexSet, int codim, const Value &value, const Allocator &allocator=Allocator())
 
template<class Entity >
const Valueoperator[] (const Entity &entity) const
 
template<class Entity >
Valueoperator[] (const Entity &entity)
 
template<class Entity >
const Valueoperator() (const Entity &entity, int subEntity) const
 
template<class Entity >
Valueoperator() (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
 
void reserve ()
 
void clear ()
 
void update ()
 

Protected Member Functions

const IndexSetindexSet () const
 

Protected Attributes

int codim_
 
const IndexSetindexSet_
 
Vector data_
 

Detailed Description

template<class G, class IndexSet, class Vector>
class Dune::PersistentContainerVector< G, IndexSet, Vector >

vector-based implementation of the PersistentContainer

Member Typedef Documentation

template<class G, class IndexSet, class Vector>
typedef Vector::allocator_type Dune::PersistentContainerVector< G, IndexSet, Vector >::Allocator
template<class G, class IndexSet, class Vector>
typedef Vector::const_iterator Dune::PersistentContainerVector< G, IndexSet, Vector >::ConstIterator
template<class G, class IndexSet, class Vector>
typedef Value Dune::PersistentContainerVector< G, IndexSet, Vector >::Data
Deprecated:
"Use Value instead."
template<class G, class IndexSet, class Vector>
typedef G Dune::PersistentContainerVector< G, IndexSet, Vector >::Grid
template<class G, class IndexSet, class Vector>
typedef Grid Dune::PersistentContainerVector< G, IndexSet, Vector >::GridType
Deprecated:
"Use Grid instead."
template<class G, class IndexSet, class Vector>
typedef Vector::iterator Dune::PersistentContainerVector< G, IndexSet, Vector >::Iterator
template<class G, class IndexSet, class Vector>
typedef Vector::size_type Dune::PersistentContainerVector< G, IndexSet, Vector >::Size
template<class G, class IndexSet, class Vector>
typedef Vector::value_type Dune::PersistentContainerVector< G, IndexSet, Vector >::Value

Constructor & Destructor Documentation

template<class G, class IndexSet, class Vector>
Dune::PersistentContainerVector< G, IndexSet, Vector >::PersistentContainerVector ( const IndexSet indexSet,
int  codim,
const Value value,
const Allocator allocator = Allocator() 
)
inline

Member Function Documentation

template<class G, class IndexSet, class Vector>
ConstIterator Dune::PersistentContainerVector< G, IndexSet, Vector >::begin ( ) const
inline
template<class G, class IndexSet, class Vector>
Iterator Dune::PersistentContainerVector< G, IndexSet, Vector >::begin ( )
inline
template<class G, class IndexSet, class Vector>
void Dune::PersistentContainerVector< G, IndexSet, Vector >::clear ( )
inline
Deprecated:
"Use resize() instead."
template<class G, class IndexSet, class Vector>
int Dune::PersistentContainerVector< G, IndexSet, Vector >::codimension ( ) const
inline
template<class G, class IndexSet, class Vector>
ConstIterator Dune::PersistentContainerVector< G, IndexSet, Vector >::end ( ) const
inline
template<class G, class IndexSet, class Vector>
Iterator Dune::PersistentContainerVector< G, IndexSet, Vector >::end ( )
inline
template<class G, class IndexSet, class Vector>
void Dune::PersistentContainerVector< G, IndexSet, Vector >::fill ( const Value value)
inline
template<class G, class IndexSet, class Vector>
const IndexSet& Dune::PersistentContainerVector< G, IndexSet, Vector >::indexSet ( ) const
inlineprotected
template<class G, class IndexSet, class Vector>
template<class Entity >
const Value& Dune::PersistentContainerVector< G, IndexSet, Vector >::operator() ( const Entity entity,
int  subEntity 
) const
inline
template<class G, class IndexSet, class Vector>
template<class Entity >
Value& Dune::PersistentContainerVector< G, IndexSet, Vector >::operator() ( const Entity entity,
int  subEntity 
)
inline
template<class G, class IndexSet, class Vector>
template<class Entity >
const Value& Dune::PersistentContainerVector< G, IndexSet, Vector >::operator[] ( const Entity entity) const
inline
template<class G, class IndexSet, class Vector>
template<class Entity >
Value& Dune::PersistentContainerVector< G, IndexSet, Vector >::operator[] ( const Entity entity)
inline
template<class G, class IndexSet, class Vector>
void Dune::PersistentContainerVector< G, IndexSet, Vector >::reserve ( )
inline
Deprecated:
"Use resize() instead."
template<class G, class IndexSet, class Vector>
void Dune::PersistentContainerVector< G, IndexSet, Vector >::resize ( const Value value = Value())
inline
template<class G, class IndexSet, class Vector>
void Dune::PersistentContainerVector< G, IndexSet, Vector >::shrinkToFit ( )
inline
template<class G, class IndexSet, class Vector>
Size Dune::PersistentContainerVector< G, IndexSet, Vector >::size ( ) const
inline
template<class G, class IndexSet, class Vector>
void Dune::PersistentContainerVector< G, IndexSet, Vector >::swap ( This other)
inline
template<class G, class IndexSet, class Vector>
void Dune::PersistentContainerVector< G, IndexSet, Vector >::update ( )
inline
Deprecated:
"Use resize() instead."

Member Data Documentation

template<class G, class IndexSet, class Vector>
int Dune::PersistentContainerVector< G, IndexSet, Vector >::codim_
protected
template<class G, class IndexSet, class Vector>
Vector Dune::PersistentContainerVector< G, IndexSet, Vector >::data_
protected
template<class G, class IndexSet, class Vector>
const IndexSet* Dune::PersistentContainerVector< G, IndexSet, Vector >::indexSet_
protected

The documentation for this class was generated from the following file: