src/work/marci/leda/leda_graph_wrapper.h
changeset 473 2cef25dcde3f
parent 461 a11ddf8a6614
child 482 dce64ce044d6
equal deleted inserted replaced
2:0b32d541c8cf 3:19d7fb906e88
    41   /// like @ref ListGraph or
    41   /// like @ref ListGraph or
    42   /// @ref SmartGraph will just refer to this structure.
    42   /// @ref SmartGraph will just refer to this structure.
    43   template<typename Graph>
    43   template<typename Graph>
    44   class LedaGraphWrapper
    44   class LedaGraphWrapper
    45   {
    45   {
       
    46   protected:
    46     Graph* _graph;
    47     Graph* _graph;
       
    48     LedaGraphWrapper() : _graph(0) { }
       
    49     setGraph(Graph& __graph) { _graph=&__graph; }
    47   public:
    50   public:
    48    
    51    
    49         //LedaGraphWrapper() { }
    52         //LedaGraphWrapper() { }
    50     LedaGraphWrapper(Graph& __graph) : _graph(&__graph) { }
    53     LedaGraphWrapper(Graph& __graph) : _graph(&__graph) { }
    51     LedaGraphWrapper(const LedaGraphWrapper &G) : _graph(G._graph) { }
    54     LedaGraphWrapper(const LedaGraphWrapper &G) : _graph(G._graph) { }
   303       //void update(T a) { leda_stuff.init(leda_stuff.get_graph()/**(G._graph)*/, a); }   //FIXME: Is it necessary
   306       //void update(T a) { leda_stuff.init(leda_stuff.get_graph()/**(G._graph)*/, a); }   //FIXME: Is it necessary
   304     };
   307     };
   305 
   308 
   306   };
   309   };
   307 
   310 
       
   311   template<typename Graph>
       
   312   class LedaGraph : public LedaGraphWrapper<Graph> {
       
   313     typedef LedaGraphWrapper<Graph> Parent;
       
   314   protected:
       
   315     Graph gr;
       
   316   public:
       
   317     LedaGraph() { 
       
   318       Parent::setGraph(gr); 
       
   319     }
       
   320   };
       
   321 
   308   // @}
   322   // @}
   309 
   323 
   310 } //namespace hugo
   324 } //namespace hugo
   311 
   325 
   312 
   326