COIN-OR::LEMON - Graph Library

Changeset 234:348f8fd374ee in lemon-0.x for src/work/marci


Ignore:
Timestamp:
03/22/04 17:37:10 (21 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@331
Message:

RevGraphWrapper?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/marci/graph_wrapper.h

    r231 r234  
    241241//   };
    242242
    243   template<typename Graph>
     243  template<typename /*Graph*/GraphWrapper
     244  /*=typename GraphWrapperSkeleton< TrivGraphWrapper<Graph>*/ >
    244245  class RevGraphWrapper :
    245     public GraphWrapperSkeleton< TrivGraphWrapper<Graph> > {
     246    public GraphWrapper/*GraphWrapperSkeleton< TrivGraphWrapper<Graph> >*/ {
    246247  protected:
    247248    //Graph* graph;
     
    254255 
    255256    //typedef typename Graph::Edge Edge;
    256     typedef typename GraphWrapperSkeleton< TrivGraphWrapper<Graph> >::OutEdgeIt InEdgeIt;
    257     typedef typename GraphWrapperSkeleton< TrivGraphWrapper<Graph> >::InEdgeIt OutEdgeIt;
     257    typedef typename GraphWrapper/*typename GraphWrapperSkeleton< TrivGraphWrapper<Graph> >*/::OutEdgeIt InEdgeIt;
     258    typedef typename GraphWrapper/*typename GraphWrapperSkeleton< TrivGraphWrapper<Graph> >*/::InEdgeIt OutEdgeIt;
    258259    //typedef typename Graph::SymEdgeIt SymEdgeIt;
    259260    //typedef typename Graph::EdgeIt EdgeIt;
    260261
    261262    //RevGraphWrapper() : graph(0) { }
    262     RevGraphWrapper(Graph& _graph) : GraphWrapperSkeleton< TrivGraphWrapper<Graph> >(TrivGraphWrapper<Graph>(_graph)) { }
     263    RevGraphWrapper(GraphWrapper _gw/*BaseGraph& _graph*/) : GraphWrapper/*GraphWrapperSkeleton< TrivGraphWrapper<Graph> >*/(_gw/*TrivGraphWrapper<Graph>(_graph)*/) { }
    263264   
    264265    //void setGraph(Graph& _graph) { graph = &_graph; }
     
    305306
    306307    template<typename T> class NodeMap :
    307       public GraphWrapperSkeleton< TrivGraphWrapper<Graph> >::NodeMap<T>
     308      public GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::NodeMap<T>
    308309    {
    309310    public:
    310       NodeMap(const RevGraphWrapper<Graph>& _G) :
    311         GraphWrapperSkeleton< TrivGraphWrapper<Graph> >::NodeMap<T>(_G) { }
    312       NodeMap(const RevGraphWrapper<Graph>& _G, T a) :
    313         GraphWrapperSkeleton< TrivGraphWrapper<Graph> >::NodeMap<T>(_G, a) { }
     311      NodeMap(const RevGraphWrapper<GraphWrapper>& _gw) :
     312        GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::NodeMap<T>(_gw) { }
     313      NodeMap(const RevGraphWrapper<GraphWrapper>& _gw, T a) :
     314        GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::NodeMap<T>(_gw, a) { }
    314315    };
    315316   
    316317    template<typename T> class EdgeMap :
    317       public GraphWrapperSkeleton< TrivGraphWrapper<Graph> >::EdgeMap<T> {
    318     public:
    319       EdgeMap(const RevGraphWrapper<Graph>& _G) :
    320         GraphWrapperSkeleton< TrivGraphWrapper<Graph> >::EdgeMap<T>(_G) { }
    321       EdgeMap(const RevGraphWrapper<Graph>& _G, T a) :
    322         GraphWrapperSkeleton< TrivGraphWrapper<Graph> >::EdgeMap<T>(_G, a) { }
     318      public GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::EdgeMap<T> {
     319    public:
     320      EdgeMap(const RevGraphWrapper<GraphWrapper>& _gw) :
     321        GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::EdgeMap<T>(_gw) { }
     322      EdgeMap(const RevGraphWrapper<GraphWrapper>& _gw, T a) :
     323        GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::EdgeMap<T>(_gw, a) { }
    323324    };
    324325  };
Note: See TracChangeset for help on using the changeset viewer.