dune-grid  2.2.1
Public Types | Public Member Functions | Protected Attributes | List of all members
Dune::PersistentContainer< AlbertaGrid< dim, dimworld >, Data, Allocator > Class Template Reference

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

Inheritance diagram for Dune::PersistentContainer< AlbertaGrid< dim, dimworld >, Data, Allocator >:
Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld >, AlbertaGrid< dim, dimworld >::HierarchicIndexSet, std::vector< Data, Allocator > >

Public Types

typedef AlbertaGrid< dim,
dimworld > 
GridType
 
typedef std::vector< Data,
Allocator >::value_type 
Data
 
typedef GridType::template
Codim< 0 >::Entity 
ElementType
 entity of codimension 0 More...
 
typedef std::vector< Data,
Allocator >::iterator 
Iterator
 iterator type More...
 
typedef std::vector< Data,
Allocator >::const_iterator 
ConstIterator
 const iterator type More...
 

Public Member Functions

 PersistentContainer (const GridType &grid, const int codim, const Allocator &allocator=Allocator())
 
const AlbertaGrid< dim,
dimworld >::HierarchicIndexSet & 
index ()
 pass on index set used for Container More...
 
Dataoperator[] (const Entity &entity)
 random access to entity data with correct codimension More...
 
const Dataoperator[] (const Entity &entity) const
 random access to entity data with correct codimension More...
 
Dataoperator() (const ElementType &element, const int subEntity)
 access for sub entity data More...
 
const Dataoperator() (const ElementType &element, const int subEntity) const
 access for sub entity data More...
 
Iterator begin ()
 const iterator begin More...
 
ConstIterator begin () const
 const iterator begin More...
 
Iterator end ()
 iterator end More...
 
ConstIterator end () const
 const iterator end More...
 
size_t size () const
 return size of allocated data More...
 
void reserve ()
 enlarge container, compress is not necessary but could be done More...
 
void clear ()
 adjust container to correct size and set all values to default More...
 
void update ()
 adjust container to correct size including compress More...
 

Protected Attributes

const int codim_
 
const AlbertaGrid< dim,
dimworld >::HierarchicIndexSet & 
index_
 
const double overEstimate_
 
std::vector< Data, Allocator > data_
 

Member Typedef Documentation

typedef std::vector< Data, Allocator > :: const_iterator Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::ConstIterator
inherited

const iterator type

typedef std::vector< Data, Allocator > ::value_type Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::Data
inherited
typedef GridType :: template Codim< 0 >:: Entity Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::ElementType
inherited

entity of codimension 0

template<int dim, int dimworld, class Data , class Allocator >
typedef AlbertaGrid< dim, dimworld > Dune::PersistentContainer< AlbertaGrid< dim, dimworld >, Data, Allocator >::GridType
typedef std::vector< Data, Allocator > :: iterator Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::Iterator
inherited

iterator type

Constructor & Destructor Documentation

template<int dim, int dimworld, class Data , class Allocator >
Dune::PersistentContainer< AlbertaGrid< dim, dimworld >, Data, Allocator >::PersistentContainer ( const GridType grid,
const int  codim,
const Allocator &  allocator = Allocator() 
)
inline

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< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::begin ( )
inlineinherited
ConstIterator Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::begin ( ) const
inlineinherited
void Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::clear ( )
inlineinherited
Iterator Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::end ( )
inlineinherited
ConstIterator Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::end ( ) const
inlineinherited
const AlbertaGrid< dim, dimworld >::HierarchicIndexSet & Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::index ( )
inlineinherited

pass on index set used for Container

References Dune::PersistentContainerVector< Grid, Index, Vector >::index_.

Data& Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator() ( const ElementType element,
const int  subEntity 
)
inlineinherited
const Data& Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator() ( const ElementType element,
const int  subEntity 
) const
inlineinherited
Data& Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator[] ( const Entity entity)
inlineinherited
const Data& Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::operator[] ( const Entity entity) const
inlineinherited
void Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::reserve ( )
inlineinherited
size_t Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::size ( ) const
inlineinherited

return size of allocated data

References Dune::PersistentContainerVector< Grid, Index, Vector >::data_.

void Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::update ( )
inlineinherited

Member Data Documentation

const int Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::codim_
protectedinherited
std::vector< Data, Allocator > Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::data_
protectedinherited
const AlbertaGrid< dim, dimworld >::HierarchicIndexSet & Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::index_
protectedinherited
const double Dune::PersistentContainerVector< AlbertaGrid< dim, dimworld > , AlbertaGrid< dim, dimworld >::HierarchicIndexSet , std::vector< Data, Allocator > >::overEstimate_
protectedinherited

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