1 #ifndef __PDBCLASSMAP_HH__
2 #define __PDBCLASSMAP_HH__
19 std::binary_function<T, T, bool> {
22 return strcmp(x,y) < 0;
34 T*&
operator [] (
const char * className) {
return _map[className]; }
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());
static PdbClassMap * instance()
std::map< const char *, T *, strless< const char * > >::iterator find(const char *className)
std::map< const char *, T *, strless< const char * > >::iterator end()
T *& operator[](const char *className)
void erase(const char *className)
bool operator()(const T &x, const T &y) const