4#ifndef SHARED_POINTER_MAP_HH
5#define SHARED_POINTER_MAP_HH
7#warning This header is deprecated and will be removed after 2.11.
35template <
class K,
class V,
class Compare = std::less<K> >
37[[deprecated(
"This class is deprecated and will be removed after 2.11.")]]
46 [[deprecated(
"This class is deprecated and will be removed after 2.11.")]]
56 typename Base::const_iterator it = this->
find(key);
57 if (it == this->
end())
68 typename Base::iterator it = this->
find(key);
69 if (it == this->
end())
78 const V&
get(
const K& key)
const
80 return *getPointer(key);
89 return *getPointer(key);
97 void set(
const K& key, V* value)
reference operator[](size_type i)
#define DUNE_THROW(E,...)
const_iterator find(int proc) const
Simple map for shared pointers.
Definition sharedpointermap.hh:40
VSP & getPointer(const K &key)
Get a shared ptr for given key.
Definition sharedpointermap.hh:66
const VSP & getPointer(const K &key) const
Get a const shared ptr for given key.
Definition sharedpointermap.hh:54
const V & get(const K &key) const
Get const reference to value for given key.
Definition sharedpointermap.hh:78
SharedPointerMap()
Definition sharedpointermap.hh:47
void set(const K &key, V *value)
Set key to value.
Definition sharedpointermap.hh:97
V & get(const K &key)
Get reference to value for given key.
Definition sharedpointermap.hh:87
std::map< K, VSP, Compare > Base
Definition sharedpointermap.hh:44