dune-grid 2.9.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
Dune::PersistentContainer< YaspGrid< dim, CoordCont >, T > Class Template Reference

Specialization of the PersistentContainer for YaspGrid. More...

#include <dune/grid/yaspgrid/yaspgridpersistentcontainer.hh>

Inheritance diagram for Dune::PersistentContainer< YaspGrid< dim, CoordCont >, T >:
Inheritance graph

Public Types

typedef Base::Grid Grid
 
typedef Base::Value Value
 
typedef Vector::size_type Size
 
typedef Vector::const_iterator ConstIterator
 
typedef Vector::iterator Iterator
 
typedef Vector::allocator_type Allocator
 

Public Member Functions

 PersistentContainer (const Grid &grid, int codim, const Value &value=Value())
 
Size size () const
 
const Valueoperator[] (const Entity &entity) const
 
Valueoperator[] (const Entity &entity)
 
const Valueoperator() (const Entity &entity, int subEntity) const
 
Valueoperator() (const Entity &entity, int subEntity)
 
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 YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > & indexSet () const
 

Protected Attributes

int codim_
 
const YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > * indexSet_
 
std::vector< T > data_
 

Private Member Functions

std::size_t size (int) const
 

Detailed Description

template<int dim, class CoordCont, class T>
class Dune::PersistentContainer< YaspGrid< dim, CoordCont >, T >

Specialization of the PersistentContainer for YaspGrid.

Note
questions regarding the interface of PersistentContainer:
  • is it allowed to access the container after grid modification, without calling resize?
  • which assumptions on the indexset doe the PersistentContainerVector have?

Member Typedef Documentation

◆ Allocator

typedef Vector::allocator_type Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::Allocator
inherited

◆ ConstIterator

typedef Vector::const_iterator Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::ConstIterator
inherited

◆ Grid

template<int dim, class CoordCont , class T >
typedef Base::Grid Dune::PersistentContainer< YaspGrid< dim, CoordCont >, T >::Grid

◆ Iterator

typedef Vector::iterator Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::Iterator
inherited

◆ Size

typedef Vector::size_type Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::Size
inherited

◆ Value

template<int dim, class CoordCont , class T >
typedef Base::Value Dune::PersistentContainer< YaspGrid< dim, CoordCont >, T >::Value

Constructor & Destructor Documentation

◆ PersistentContainer()

template<int dim, class CoordCont , class T >
Dune::PersistentContainer< YaspGrid< dim, CoordCont >, T >::PersistentContainer ( const Grid grid,
int  codim,
const Value value = Value() 
)
inline

Member Function Documentation

◆ begin() [1/2]

Iterator Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::begin ( )
inlineinherited

◆ begin() [2/2]

ConstIterator Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::begin ( ) const
inlineinherited

◆ codimension()

int Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::codimension ( ) const
inlineinherited

◆ end() [1/2]

Iterator Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::end ( )
inlineinherited

◆ end() [2/2]

ConstIterator Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::end ( ) const
inlineinherited

◆ fill()

void Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::fill ( const Value value)
inlineinherited

◆ indexSet()

const YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > & Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::indexSet ( ) const
inlineprotectedinherited

◆ operator()() [1/2]

Value & Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::operator() ( const Entity entity,
int  subEntity 
)
inlineinherited

◆ operator()() [2/2]

const Value & Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::operator() ( const Entity entity,
int  subEntity 
) const
inlineinherited

◆ operator[]() [1/2]

Value & Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::operator[] ( const Entity entity)
inlineinherited

◆ operator[]() [2/2]

const Value & Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::operator[] ( const Entity entity) const
inlineinherited

◆ resize()

void Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::resize ( const Value value = Value())
inlineinherited

◆ shrinkToFit()

void Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::shrinkToFit ( )
inlineinherited

◆ size()

template<int dim, class CoordCont , class T >
Size Dune::PersistentContainerVector< G, IndexSet, Vector >::size ( ) const
inline

◆ swap()

void Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::swap ( This other)
inlineinherited

Member Data Documentation

◆ codim_

int Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::codim_
protectedinherited

◆ data_

std::vector< T > Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::data_
protectedinherited

◆ indexSet_

const YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > * Dune::PersistentContainerVector< YaspGrid< dim, CoordCont > , YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > > , std::vector< T > >::indexSet_
protectedinherited

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