dune-grid  2.2.0
Public Types | Public Member Functions | Protected Attributes
Dune::PersistentContainerVector< Grid, Index, Vector > Class Template Reference

An implementation for the PersistentContainer based on a container satisfying the std::vector interface and using a class providing an IndexSet for storing the Data. More...

#include <dune/grid/utility/persistentcontainer.hh>

Inheritance diagram for Dune::PersistentContainerVector< Grid, Index, Vector >:
Inheritance graph

List of all members.

Public Types

typedef Vector::value_type Data
typedef Grid GridType
typedef GridType::template
Codim< 0 >::Entity 
ElementType
 entity of codimension 0
typedef Vector::iterator Iterator
 iterator type
typedef Vector::const_iterator ConstIterator
 const iterator type

Public Member Functions

 PersistentContainerVector (const GridType &grid, const int codim, const Index &index, const double overEstimate, const typename Vector::allocator_type &allocator)
 constructor creating vector container filled with default value
 PersistentContainerVector (const PersistentContainerVector &other)
 copy constructor
const Index & index ()
 pass on index set used for Container
template<class Entity >
Dataoperator[] (const Entity &entity)
 random access to entity data with correct codimension
template<class Entity >
const Dataoperator[] (const Entity &entity) const
 random access to entity data with correct codimension
Dataoperator() (const ElementType &element, const int subEntity)
 access for sub entity data
const Dataoperator() (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 Index & index_
const double overEstimate_
Vector data_

Detailed Description

template<class Grid, class Index, class Vector>
class Dune::PersistentContainerVector< Grid, Index, Vector >

An implementation for the PersistentContainer based on a container satisfying the std::vector interface and using a class providing an IndexSet for storing the Data.


Member Typedef Documentation

template<class Grid, class Index, class Vector>
typedef Vector :: const_iterator Dune::PersistentContainerVector< Grid, Index, Vector >::ConstIterator

const iterator type

template<class Grid, class Index, class Vector>
typedef Vector::value_type Dune::PersistentContainerVector< Grid, Index, Vector >::Data
template<class Grid, class Index, class Vector>
typedef GridType :: template Codim< 0 >:: Entity Dune::PersistentContainerVector< Grid, Index, Vector >::ElementType

entity of codimension 0

template<class Grid, class Index, class Vector>
typedef Grid Dune::PersistentContainerVector< Grid, Index, Vector >::GridType
template<class Grid, class Index, class Vector>
typedef Vector :: iterator Dune::PersistentContainerVector< Grid, Index, Vector >::Iterator

iterator type


Constructor & Destructor Documentation

template<class Grid, class Index, class Vector>
Dune::PersistentContainerVector< Grid, Index, Vector >::PersistentContainerVector ( const GridType grid,
const int  codim,
const Index &  index,
const double  overEstimate,
const typename Vector::allocator_type &  allocator 
)
inline

constructor creating vector container filled with default value

template<class Grid, class Index, class Vector>
Dune::PersistentContainerVector< Grid, Index, Vector >::PersistentContainerVector ( const PersistentContainerVector< Grid, Index, Vector > &  other)
inline

copy constructor


Member Function Documentation

template<class Grid, class Index, class Vector>
Iterator Dune::PersistentContainerVector< Grid, Index, Vector >::begin ( )
inline

const iterator begin

template<class Grid, class Index, class Vector>
ConstIterator Dune::PersistentContainerVector< Grid, Index, Vector >::begin ( ) const
inline

const iterator begin

template<class Grid, class Index, class Vector>
void Dune::PersistentContainerVector< Grid, Index, Vector >::clear ( )
inline

adjust container to correct size and set all values to default

template<class Grid, class Index, class Vector>
Iterator Dune::PersistentContainerVector< Grid, Index, Vector >::end ( )
inline

iterator end

template<class Grid, class Index, class Vector>
ConstIterator Dune::PersistentContainerVector< Grid, Index, Vector >::end ( ) const
inline

const iterator end

template<class Grid, class Index, class Vector>
const Index& Dune::PersistentContainerVector< Grid, Index, Vector >::index ( )
inline

pass on index set used for Container

template<class Grid, class Index, class Vector>
Data& Dune::PersistentContainerVector< Grid, Index, Vector >::operator() ( const ElementType element,
const int  subEntity 
)
inline

access for sub entity data

template<class Grid, class Index, class Vector>
const Data& Dune::PersistentContainerVector< Grid, Index, Vector >::operator() ( const ElementType element,
const int  subEntity 
) const
inline

access for sub entity data

template<class Grid, class Index, class Vector>
template<class Entity >
Data& Dune::PersistentContainerVector< Grid, Index, Vector >::operator[] ( const Entity entity)
inline

random access to entity data with correct codimension

template<class Grid, class Index, class Vector>
template<class Entity >
const Data& Dune::PersistentContainerVector< Grid, Index, Vector >::operator[] ( const Entity entity) const
inline

random access to entity data with correct codimension

template<class Grid, class Index, class Vector>
void Dune::PersistentContainerVector< Grid, Index, Vector >::reserve ( )
inline

enlarge container, compress is not necessary but could be done

template<class Grid, class Index, class Vector>
size_t Dune::PersistentContainerVector< Grid, Index, Vector >::size ( ) const
inline

return size of allocated data

template<class Grid, class Index, class Vector>
void Dune::PersistentContainerVector< Grid, Index, Vector >::update ( )
inline

Member Data Documentation

template<class Grid, class Index, class Vector>
const int Dune::PersistentContainerVector< Grid, Index, Vector >::codim_
protected
template<class Grid, class Index, class Vector>
Vector Dune::PersistentContainerVector< Grid, Index, Vector >::data_
protected
template<class Grid, class Index, class Vector>
const Index& Dune::PersistentContainerVector< Grid, Index, Vector >::index_
protected
template<class Grid, class Index, class Vector>
const double Dune::PersistentContainerVector< Grid, Index, Vector >::overEstimate_
protected

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