1 #ifndef PDBCAL_BASE_PDBCLASSMAP_H
2 #define PDBCAL_BASE_PDBCLASSMAP_H
19 std::binary_function<T, T, bool> {
22 return strcmp(x,y) < 0;
35 typename std::map<const char*, T*, strless<const char*> >::iterator
find(
const char * className) {
return _map.find(className); }
36 typename std::map<const char*, T*, strless<const char*> >::iterator
end() {
return _map.end(); }
37 void erase(
const char * className);
44 std::map<const char*, T*, strless<const char*> >
_map;
55 _map.erase(_map.find(className));
67 while( _map.begin() != _map.end())
69 delete _map.begin()->second;
70 _map.erase(_map.begin());