COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
07/18/05 17:03:55 (19 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2062
Message:

Fix concepts and constraints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concept/graph_component.h

    r1494 r1563  
    678678      /// of a graph.
    679679      typedef GraphIncIterator<Graph, Edge, 'o'> OutEdgeIt;
    680     };
     680
     681      /// \brief The base node of the iterator.
     682      ///
     683      /// Gives back the base node of the iterator.
     684      Node baseNode(const InEdgeIt&) const { return INVALID; }
     685
     686      /// \brief The running node of the iterator.
     687      ///
     688      /// Gives back the running node of the iterator.
     689      Node runningNode(const InEdgeIt&) const { return INVALID; }
     690
     691      /// \brief The base node of the iterator.
     692      ///
     693      /// Gives back the base node of the iterator.
     694      Node baseNode(const OutEdgeIt&) const { return INVALID; }
     695
     696      /// \brief The running node of the iterator.
     697      ///
     698      /// Gives back the running node of the iterator.
     699      Node runningNode(const OutEdgeIt&) const { return INVALID; }
     700
    681701   
    682     template <typename _Graph>
    683     struct Constraints {
    684       void constraints() {
    685         checkConcept< BaseGraphComponent, _Graph>();
    686 
    687         checkConcept<GraphIterator<_Graph, typename _Graph::Edge>,
    688           typename _Graph::EdgeIt >();
    689         checkConcept<GraphIterator<_Graph, typename _Graph::Node>,
    690           typename _Graph::NodeIt >();
    691         checkConcept<GraphIncIterator<_Graph>, typename _Graph::InEdgeIt >();
    692         checkConcept<GraphIncIterator<_Graph>, typename _Graph::OutEdgeIt >();
    693       }
     702      template <typename _Graph>
     703      struct Constraints {
     704        void constraints() {
     705          checkConcept< BaseGraphComponent, _Graph>();
     706         
     707          checkConcept<GraphIterator<_Graph, typename _Graph::Edge>,
     708            typename _Graph::EdgeIt >();
     709          checkConcept<GraphIterator<_Graph, typename _Graph::Node>,
     710            typename _Graph::NodeIt >();
     711          checkConcept<GraphIncIterator<_Graph>, typename _Graph::InEdgeIt>();
     712          checkConcept<GraphIncIterator<_Graph>, typename _Graph::OutEdgeIt>();
     713        }
     714      };
    694715    };
    695716
Note: See TracChangeset for help on using the changeset viewer.