1.1 --- a/src/work/deba/mapbase.h Thu Apr 22 16:07:17 2004 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,31 +0,0 @@
1.4 -#ifndef MAPBASE_H
1.5 -#define MAPBASE_H
1.6 -
1.7 -template <class GB, class K>
1.8 -class MapBase {
1.9 -public:
1.10 - typedef GB GraphBase;
1.11 - typedef MappedGraph<GraphBase> Graph;
1.12 -
1.13 - typedef K KeyType;
1.14 -
1.15 -
1.16 - MapBase() : graph(0) {}
1.17 - MapBase(Graph& g) : graph(&g) {graph.add(*this);}
1.18 -
1.19 - virtual ~MapBase() {graph.erase(*this);}
1.20 -
1.21 -protected:
1.22 -
1.23 - Graph* graph;
1.24 -
1.25 - int graph_index;
1.26 -
1.27 -
1.28 - virtual void add(const KeyType&) = 0;
1.29 - virtual void erase(const KeyType&) = 0;
1.30 -
1.31 - friend class Graph;
1.32 -};
1.33 -
1.34 -#endif