.
authoralpar
Tue, 17 Feb 2004 13:26:44 +0000
changeset 92a7f9e2fda93a
parent 91 81bf58164f60
child 93 25ab81446a07
.
src/work/list_graph.hh
     1.1 --- a/src/work/list_graph.hh	Tue Feb 17 12:27:49 2004 +0000
     1.2 +++ b/src/work/list_graph.hh	Tue Feb 17 13:26:44 2004 +0000
     1.3 @@ -361,8 +361,9 @@
     1.4        friend class OutEdgeIt;
     1.5        friend class InEdgeIt;
     1.6        friend class SymEdgeIt;
     1.7 +    public:  //FIXME: It is required by op= of EachNodeIt
     1.8 +      node_item* node;
     1.9      protected:
    1.10 -      node_item* node;
    1.11        friend int ListGraph::id(NodeIt v) const; 
    1.12      public:
    1.13        NodeIt() : node(0) { }
    1.14 @@ -381,12 +382,15 @@
    1.15      class EachNodeIt : public NodeIt {
    1.16        friend class ListGraph;
    1.17        //protected:
    1.18 -    public: //for alpar
    1.19 +    public: //for everybody but marci
    1.20        EachNodeIt(const ListGraph& G) : NodeIt(G._first_node) { }
    1.21      public:
    1.22        EachNodeIt() : NodeIt() { }
    1.23        EachNodeIt(node_item* v) : NodeIt(v) { }
    1.24        EachNodeIt& operator++() { node=node->_next_node; return *this; }
    1.25 +      //FIXME::
    1.26 +      EachNodeIt& operator=(const NodeIt& e)
    1.27 +      { node=e.node; return *this; }
    1.28      };
    1.29  
    1.30      class EdgeIt {