1 #ifndef MINT_POLYMORPH_MAP 2 #define MINT_POLYMORPH_MAP 7 template<
typename Key,
typename Val>
26 typename std::map<Key, Val>::iterator
begin(){
return _map.begin();}
27 typename std::map<Key, Val>::const_iterator
begin()
const{
return _map.begin();}
29 typename std::map<Key, Val>::iterator
end(){
return _map.end();}
30 typename std::map<Key, Val>::const_iterator
end()
const{
return _map.end();}
32 typename std::map<Key, Val>::iterator
find(
const Key& c){
return _map.find(c);}
33 typename std::map<Key, Val>::const_iterator
find(
const Key& c)
const{
return _map.find(c);}
35 void insert(
typename std::map<Key, Val>::const_iterator first
36 ,
typename std::map<Key, Val>::const_iterator last){
37 _map.insert(first, last);
50 void resize(
unsigned int N,
const Val& c){
_map.resize(N, c);}
52 operator const typename std::map<Key, Val>& ()
const{
55 operator typename std::map<Key, Val>& (){
70 return v2 <
_map.theMap();
void resize(unsigned int N, const Val &c)
Val & operator[](const Key &k)
void resize(unsigned int N)
std::map< Key, Val >::const_iterator find(const Key &c) const
std::map< Key, Val >::iterator end()
bool operator>(const MINT::PolymorphMap< Key, Val > &v2) const
std::map< Key, Val > & theMap()
std::map< Key, Val >::const_iterator begin() const
std::map< Key, Val > _map
bool operator==(const MINT::PolymorphMap< Key, Val > &v2) const
unsigned int size() const
const std::map< Key, Val > & theMap() const
bool operator!=(const MINT::PolymorphMap< Key, Val > &v2) const
std::map< Key, Val >::iterator begin()
std::map< Key, Val >::const_iterator end() const
std::map< Key, Val >::iterator find(const Key &c)
PolymorphMap< Key, Val > & operator=(const PolymorphMap &other)
PolymorphMap(const PolymorphMap &other)
bool operator<(const MINT::PolymorphMap< Key, Val > &v2) const
void insert(typename std::map< Key, Val >::const_iterator first, typename std::map< Key, Val >::const_iterator last)
const Val & operator[](const Key &k) const
PolymorphMap(const typename std::map< Key, Val > &other)