COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
11/13/04 22:37:54 (19 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1379
Message:

XyzConcept? moved to Xyz::Constraints
use checkConcept in the next way:

checkConcept<ErasableGraph?, ListGraph?>();
checkConcept<ReadWriteMap?<Node, Node>, PredMap?>;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/concept/undir_graph.h

    r986 r989  
    3939      typedef typename Graph::Edge Edge;
    4040      typedef typename Graph::Node Node;
     41
    4142      void constraints() {
    42         function_requires< BaseIterableGraphComponentConcept<Graph> >();
    43         function_requires< GraphItemConcept<UndirEdge> >();
     43        checkConcept<BaseIterableGraphComponent, Graph>();
     44        checkConcept<GraphItem<'u'>, UndirEdge >();
    4445
    4546        /// \bug this should be base_and_derived:
     
    6162    struct IterableUndirGraphConcept {
    6263      void constraints() {
    63         function_requires< BaseIterableUndirGraphConcept<Graph> > ();
    64         function_requires< IterableGraphComponentConcept<Graph> > ();
     64        /// \todo we don't need the iterable component should base iterable     
     65        //      checkConcept< BaseIterableUndirGraph, Graph > ();
     66        checkConcept< IterableGraphComponent, Graph > ();
    6567
    6668        typedef typename Graph::UndirEdge UndirEdge;
    6769        typedef typename Graph::UndirEdgeIt UndirEdgeIt;
    6870
    69         function_requires<
    70           GraphIteratorConcept<UndirEdgeIt, Graph, UndirEdge> >();
     71        checkConcept< GraphIterator<Graph, UndirEdge>, UndirEdgeIt >();
    7172      }
    7273    };
Note: See TracChangeset for help on using the changeset viewer.