COIN-OR::LEMON - Graph Library

Changeset 657:bf7928412136 in lemon-1.2 for lemon


Ignore:
Timestamp:
05/09/09 16:39:59 (10 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
659:88753a77c634, 661:ca92c2f936b0
Phase:
public
Message:

Change Graph::Edge -> Graph::Arc inheritance to conversion (#283)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/graph.h

    r580 r657  
    311311      /// The directed arc type. It can be converted to the
    312312      /// edge or it should be inherited from the undirected
    313       /// arc.
    314       class Arc : public Edge {
     313      /// edge.
     314      class Arc {
    315315      public:
    316316        /// Default constructor
     
    323323        /// Copy constructor.
    324324        ///
    325         Arc(const Arc& e) : Edge(e) { }
     325        Arc(const Arc&) { }
    326326        /// Initialize the iterator to be invalid.
    327327
     
    350350        bool operator<(Arc) const { return false; }
    351351
     352        /// Converison to Edge
     353        operator Edge() const { return Edge(); }
    352354      };
    353355      /// This iterator goes through each directed arc.
Note: See TracChangeset for help on using the changeset viewer.