ledagraph
authormarci
Thu, 29 Apr 2004 16:04:27 +0000
changeset 4732cef25dcde3f
parent 472 052af4060f3e
child 474 229a16b5fd0f
ledagraph
src/work/marci/leda/leda_graph_wrapper.h
     1.1 --- a/src/work/marci/leda/leda_graph_wrapper.h	Thu Apr 29 15:58:34 2004 +0000
     1.2 +++ b/src/work/marci/leda/leda_graph_wrapper.h	Thu Apr 29 16:04:27 2004 +0000
     1.3 @@ -43,7 +43,10 @@
     1.4    template<typename Graph>
     1.5    class LedaGraphWrapper
     1.6    {
     1.7 +  protected:
     1.8      Graph* _graph;
     1.9 +    LedaGraphWrapper() : _graph(0) { }
    1.10 +    setGraph(Graph& __graph) { _graph=&__graph; }
    1.11    public:
    1.12     
    1.13          //LedaGraphWrapper() { }
    1.14 @@ -305,6 +308,17 @@
    1.15  
    1.16    };
    1.17  
    1.18 +  template<typename Graph>
    1.19 +  class LedaGraph : public LedaGraphWrapper<Graph> {
    1.20 +    typedef LedaGraphWrapper<Graph> Parent;
    1.21 +  protected:
    1.22 +    Graph gr;
    1.23 +  public:
    1.24 +    LedaGraph() { 
    1.25 +      Parent::setGraph(gr); 
    1.26 +    }
    1.27 +  };
    1.28 +
    1.29    // @}
    1.30  
    1.31  } //namespace hugo