4 #ifndef _H_SQStringMap_v1_H_
5 #define _H_SQStringMap_v1_H_
15 void identify(std::ostream& os = std::cout)
const;
20 bool empty()
const {
return _map.empty();}
21 size_t size()
const {
return _map.size();}
22 size_t count(std::string key)
const {
return _map.count(key);}
30 return _map.erase(key);
38 Iter find(std::string key) {
return _map.find(key);}
Iter find(std::string key)
ConstIter find(std::string key) const
SQStringMap * Clone() const
int isValid() const
isValid returns non zero if object contains vailid data
void identify(std::ostream &os=std::cout) const
size_t count(std::string key) const
const PHObject * get(std::string key) const
SQStringMap_v1 & operator=(const SQStringMap_v1 &map)
virtual ~SQStringMap_v1()
PHObject * insert(std::string key, const PHObject *item)
size_t erase(std::string key)
A general-purpose SQ interface class that holds a list of PHObjects with key = string.
std::map< std::string, PHObject * > ObjectMap
ObjectMap::const_iterator ConstIter