src/include/smart_graph.h
changeset 421 54b943063901
parent 407 e34e1bc610cf
child 456 02c28d3cf97b
equal deleted inserted replaced
5:55971c55ef19 6:90634d18deaf
    51     template <typename Key> class DynMapBase
    51     template <typename Key> class DynMapBase
    52     {
    52     {
    53     protected:
    53     protected:
    54       const SmartGraph* G; 
    54       const SmartGraph* G; 
    55     public:
    55     public:
    56       virtual void add(const Key k) = NULL;
    56       virtual void add(const Key k) = 0;
    57       virtual void erase(const Key k) = NULL;
    57       virtual void erase(const Key k) = 0;
    58       DynMapBase(const SmartGraph &_G) : G(&_G) {}
    58       DynMapBase(const SmartGraph &_G) : G(&_G) {}
    59       virtual ~DynMapBase() {}
    59       virtual ~DynMapBase() {}
    60       friend class SmartGraph;
    60       friend class SmartGraph;
    61     };
    61     };
    62     
    62