COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/digraph.h

    r627 r263  
    33 * This file is a part of LEMON, a generic C++ optimization library.
    44 *
    5  * Copyright (C) 2003-2009
     5 * Copyright (C) 2003-2008
    66 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    77 * (Egervary Research Group on Combinatorial Optimization, EGRES).
     
    1717 */
    1818
    19 #ifndef LEMON_CONCEPTS_DIGRAPH_H
    20 #define LEMON_CONCEPTS_DIGRAPH_H
     19#ifndef LEMON_CONCEPT_DIGRAPH_H
     20#define LEMON_CONCEPT_DIGRAPH_H
    2121
    2222///\ingroup graph_concepts
     
    422422      Node oppositeNode(const Node&, const Arc&) const { return INVALID; }
    423423
    424       /// \brief Reference map of the nodes to type \c T.
    425       ///
    426       /// Reference map of the nodes to type \c T.
     424      /// \brief Read write map of the nodes to type \c T.
     425      ///
     426      /// ReadWrite map of the nodes to type \c T.
     427      /// \sa Reference
    427428      template<class T>
    428       class NodeMap : public ReferenceMap<Node, T, T&, const T&> {
     429      class NodeMap : public ReadWriteMap< Node, T > {
    429430      public:
    430431
     
    436437      private:
    437438        ///Copy constructor
    438         NodeMap(const NodeMap& nm) :
    439           ReferenceMap<Node, T, T&, const T&>(nm) { }
     439        NodeMap(const NodeMap& nm) : ReadWriteMap< Node, T >(nm) { }
    440440        ///Assignment operator
    441441        template <typename CMap>
     
    446446      };
    447447
    448       /// \brief Reference map of the arcs to type \c T.
     448      /// \brief Read write map of the arcs to type \c T.
    449449      ///
    450450      /// Reference map of the arcs to type \c T.
     451      /// \sa Reference
    451452      template<class T>
    452       class ArcMap : public ReferenceMap<Arc, T, T&, const T&> {
     453      class ArcMap : public ReadWriteMap<Arc,T> {
    453454      public:
    454455
     
    459460      private:
    460461        ///Copy constructor
    461         ArcMap(const ArcMap& em) :
    462           ReferenceMap<Arc, T, T&, const T&>(em) { }
     462        ArcMap(const ArcMap& em) : ReadWriteMap<Arc,T>(em) { }
    463463        ///Assignment operator
    464464        template <typename CMap>
     
    472472      struct Constraints {
    473473        void constraints() {
    474           checkConcept<BaseDigraphComponent, _Digraph>();
    475474          checkConcept<IterableDigraphComponent<>, _Digraph>();
    476475          checkConcept<IDableDigraphComponent<>, _Digraph>();
     
    486485
    487486
    488 #endif
     487#endif // LEMON_CONCEPT_DIGRAPH_H
Note: See TracChangeset for help on using the changeset viewer.