3 #ifndef DUNE_PERSISTENTCONTAINERINTERFACE_HH
4 #define DUNE_PERSISTENTCONTAINERINTERFACE_HH
7 #error "This header exists for documentation purposes only and should never be included directly."
51 template<
class G,
class T >
56 struct ImplementationDefined;
63 typedef ImplementationDefined
Size;
83 const This &
operator= (
const This &other );
91 template<
class Entity >
98 template<
class Entity >
106 template<
class Entity >
114 template<
class Entity >
163 void fill (
const Value &value );
169 void swap ( This &other );
178 ConstIterator
begin ()
const;
191 ConstIterator
end ()
const;
207 #endif // #ifndef DUNE_PERSISTENTCONTAINERINTERFACE_HH
ConstIterator end() const
returns an iterator pointing to the last element of the container
void fill(const Value &value)
set all accessible entries to a given value
int codimension() const
return the codimension, the container attaches data to
ConstIterator begin() const
returns an iterator pointing to the first element of the container
Wrapper class for entities.
Definition: common/entity.hh:61
const This & operator=(const This &other)
assignment operator
ImplementationDefined ConstIterator
Definition: persistentcontainerinterface.hh:64
G Grid
Definition: persistentcontainerinterface.hh:56
void swap(This &other)
exchange the content of the container with another one
void resize(const Value &value=Value())
reserve memory for all entities in the grid
Size size() const
number of entries in the container
PersistentContainerInterface(Grid &grid, int codim, const Value &value=Value())
constuctor
const Value & operator[](const Entity &entity) const
access the data associated with an entity
ImplementationDefined Size
Definition: persistentcontainerinterface.hh:63
Persistent storage of data on all entities of a grid.
Definition: persistentcontainerinterface.hh:52
Include standard header files.
Definition: agrid.hh:59
const Value & operator()(const Entity &entity, int subEntity) const
access the data associated with a subentity
T Value
Definition: persistentcontainerinterface.hh:61
ImplementationDefined Iterator
Definition: persistentcontainerinterface.hh:65
void shrinkToFit()
remove unnecessary entries from container