20 #ifndef LIBMESH_MAPVECTOR_H 21 #define LIBMESH_MAPVECTOR_H 38 template <
typename Val,
typename index_t=
unsigned int>
46 return maptype::operator[](k);
50 typename maptype::const_iterator it = this->find(k);
51 return it == this->
end().
it? Val() : it->second;
74 return it == other.
it;
78 return it != other.
it;
81 typename maptype::iterator
it;
107 return it == other.
it;
111 return it != other.
it;
114 typename maptype::const_iterator
it;
121 veclike_iterator
erase(
const veclike_iterator & pos) {
122 return veclike_iterator(maptype::erase(pos.it));
126 return veclike_iterator(maptype::begin());
129 const_veclike_iterator
begin()
const {
130 return const_veclike_iterator(maptype::begin());
137 const_veclike_iterator
end()
const {
144 #endif // LIBMESH_MAPVECTOR_H const_veclike_iterator operator++(int)
veclike_iterator(const veclike_iterator &i)
std::map< index_t, Val > maptype
veclike_iterator erase(const veclike_iterator &pos)
bool operator!=(const const_veclike_iterator &other) const
bool operator!=(const veclike_iterator &other) const
veclike_iterator operator++(int)
const_veclike_iterator end() const
veclike_iterator(const typename maptype::iterator &i)
const_veclike_iterator(const typename maptype::const_iterator &i)
bool operator==(const veclike_iterator &other) const
veclike_iterator & operator++()
const_veclike_iterator(const const_veclike_iterator &i)
const_veclike_iterator(const veclike_iterator &i)
const Val & operator*() const
const_veclike_iterator & operator++()
const_veclike_iterator begin() const
maptype::const_iterator it
bool operator==(const const_veclike_iterator &other) const
Val & operator[](const index_t &k)