COIN-OR::LEMON - Graph Library

Changeset 989:ca95f8b5c931 in lemon-0.x for src/test/graph_test.cc


Ignore:
Timestamp:
11/13/04 22:37:54 (17 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/test/graph_test.cc

    r980 r989  
    2121  ///\file
    2222  { // checking graph components
    23     function_requires<BaseGraphComponentConcept<BaseGraphComponent> >();
     23    checkConcept<BaseGraphComponent, BaseGraphComponent >();
    2424
    25     function_requires<BaseIterableGraphComponentConcept<BaseIterableGraphComponent> >();
     25    checkConcept<BaseIterableGraphComponent, BaseIterableGraphComponent >();
    2626
    27     function_requires<IDableGraphComponentConcept<IDableGraphComponent> >();
    28     function_requires<MaxIDableGraphComponentConcept<MaxIDableGraphComponent> >();
     27    checkConcept<IDableGraphComponent, IDableGraphComponent >();
     28    checkConcept<MaxIDableGraphComponent, MaxIDableGraphComponent >();
    2929
    30     function_requires<BaseExtendableGraphComponentConcept<BaseExtendableGraphComponent> >();
    31     function_requires<BaseErasableGraphComponentConcept<BaseErasableGraphComponent> >();
    32     function_requires<BaseClearableGraphComponentConcept<BaseClearableGraphComponent> >();
     30    checkConcept<BaseExtendableGraphComponent, BaseExtendableGraphComponent >();
     31    checkConcept<BaseErasableGraphComponent, BaseErasableGraphComponent >();
     32    checkConcept<BaseClearableGraphComponent, BaseClearableGraphComponent >();
    3333
    34     function_requires<IterableGraphComponentConcept<IterableGraphComponent> >();
     34    checkConcept<IterableGraphComponent, IterableGraphComponent >();
    3535
    36     function_requires<MappableGraphComponentConcept<MappableGraphComponent> >();
     36    checkConcept<MappableGraphComponent, MappableGraphComponent >();
    3737
    38     function_requires<ExtendableGraphComponentConcept<ExtendableGraphComponent> >();
    39     function_requires<ErasableGraphComponentConcept<ErasableGraphComponent> >();
    40     function_requires<ClearableGraphComponentConcept<ClearableGraphComponent> >();
     38    checkConcept<ExtendableGraphComponent, ExtendableGraphComponent >();
     39    checkConcept<ErasableGraphComponent, ErasableGraphComponent >();
     40    checkConcept<ClearableGraphComponent, ClearableGraphComponent >();
    4141  }
    4242  { // checking skeleton graphs
    43     function_requires<StaticGraphConcept<StaticGraph> >();
    44     function_requires<ExtendableGraphConcept<ExtendableGraph> >();
    45     function_requires<ErasableGraphConcept<ErasableGraph> >();
     43    checkConcept<StaticGraph, StaticGraph >();
     44    checkConcept<ExtendableGraph, ExtendableGraph >();
     45    checkConcept<ErasableGraph, ErasableGraph >();
    4646  }
    4747  { // checking list graph
    48     function_requires<ErasableGraphConcept<ListGraph> >();
     48    checkConcept<ErasableGraph, ListGraph >();
    4949
    5050    checkGraph<ListGraph>();
     
    5353  }
    5454  { // checking smart graph
    55     function_requires<ExtendableGraphConcept<SmartGraph> >();
     55    checkConcept<ExtendableGraph, SmartGraph >();
    5656
    5757    checkGraph<SmartGraph>();
     
    6060  }
    6161  { // checking full graph
    62     function_requires<StaticGraphConcept<FullGraph> >();
     62    checkConcept<StaticGraph, FullGraph >();
    6363  }
    6464
Note: See TracChangeset for help on using the changeset viewer.