Bugfix
authoralpar
Wed, 02 Feb 2005 13:11:54 +0000
changeset 11175767cc417f62
parent 1116 f97e1cbbd453
child 1118 62296604afb4
Bugfix
src/work/alpar/dijkstra.h
     1.1 --- a/src/work/alpar/dijkstra.h	Wed Feb 02 11:54:55 2005 +0000
     1.2 +++ b/src/work/alpar/dijkstra.h	Wed Feb 02 13:11:54 2005 +0000
     1.3 @@ -569,7 +569,8 @@
     1.4      template<class T>
     1.5      struct DefPredMapBase : public Base {
     1.6        typedef T PredMap;
     1.7 -      static PredMap *createPredMap(const Graph &G) {};
     1.8 +      static PredMap *createPredMap(const Graph &G) { return 0; };
     1.9 +      DefPredMapBase(const Base &b) : Base(b) {}
    1.10      };
    1.11      
    1.12      ///\e
    1.13 @@ -584,7 +585,8 @@
    1.14      template<class T>
    1.15      struct DefPredNodeMapBase : public Base {
    1.16        typedef T PredNodeMap;
    1.17 -      static PredNodeMap *createPredNodeMap(const Graph &G) {};
    1.18 +      static PredNodeMap *createPredNodeMap(const Graph &G) { return 0; };
    1.19 +      DefPredNodeMapBase(const Base &b) : Base(b) {}
    1.20      };
    1.21      
    1.22      ///\e
    1.23 @@ -598,7 +600,8 @@
    1.24      template<class T>
    1.25      struct DefDistMapBase : public Base {
    1.26        typedef T DistMap;
    1.27 -      static DistMap *createDistMap(const Graph &G) {};
    1.28 +      static DistMap *createDistMap(const Graph &G) { return 0; };
    1.29 +      DefDistMapBase(const Base &b) : Base(b) {}
    1.30      };
    1.31      
    1.32      ///\e
    1.33 @@ -608,9 +611,9 @@
    1.34        _dist=(void *)&t;
    1.35        return DijkstraWizard<DefDistMapBase<T> >(*this);
    1.36      }
    1.37 -
    1.38 +    
    1.39      ///\e
    1.40 -    DijkstraWizard<TR> &setSource(Node s) 
    1.41 +    DijkstraWizard<TR> &source(Node s) 
    1.42      {
    1.43        source=(void *)&s;
    1.44        return *this;
    1.45 @@ -635,4 +638,3 @@
    1.46  
    1.47  #endif
    1.48  
    1.49 -