test/graph_test.cc
changeset 2177 416a7030b7e3
parent 2111 ea1fa1bc3f6d
child 2231 06faf3f06d67
equal deleted inserted replaced
3:23a5542f9a49 4:30f8ddb0e214
    36 
    36 
    37 int main() {
    37 int main() {
    38   { // checking graph components
    38   { // checking graph components
    39     checkConcept<BaseGraphComponent, BaseGraphComponent >();
    39     checkConcept<BaseGraphComponent, BaseGraphComponent >();
    40 
    40 
    41     checkConcept<BaseIterableGraphComponent, BaseIterableGraphComponent >();
    41     checkConcept<BaseIterableGraphComponent<>, 
       
    42       BaseIterableGraphComponent<> >();
    42 
    43 
    43     checkConcept<IDableGraphComponent, IDableGraphComponent >();
    44     checkConcept<IDableGraphComponent<>, 
    44     checkConcept<MaxIDableGraphComponent, MaxIDableGraphComponent >();
    45       IDableGraphComponent<> >();
    45 
    46 
    46     checkConcept<IterableGraphComponent, IterableGraphComponent >();
    47     checkConcept<IterableGraphComponent<>, 
       
    48       IterableGraphComponent<> >();
    47 
    49 
    48     checkConcept<MappableGraphComponent, MappableGraphComponent >();
    50     checkConcept<MappableGraphComponent<>, 
       
    51       MappableGraphComponent<> >();
    49 
    52 
    50   }
    53   }
    51   { // checking skeleton graphs
    54   { // checking skeleton graphs
    52     checkConcept<Graph, Graph >();
    55     checkConcept<Graph, Graph>();
    53   }
    56   }
    54   { // checking list graph
    57   { // checking list graph
    55     checkConcept<Graph, ListGraph >();
    58     checkConcept<Graph, ListGraph >();
       
    59     checkConcept<AlterableGraphComponent<>, ListGraph>();
       
    60     checkConcept<ExtendableGraphComponent<>, ListGraph>();
       
    61     checkConcept<ClearableGraphComponent<>, ListGraph>();
       
    62     checkConcept<ErasableGraphComponent<>, ListGraph>();
    56 
    63 
    57     checkGraph<ListGraph>();
    64     checkGraph<ListGraph>();
    58     checkGraphNodeMap<ListGraph>();
    65     checkGraphNodeMap<ListGraph>();
    59     checkGraphEdgeMap<ListGraph>();
    66     checkGraphEdgeMap<ListGraph>();
    60   }
    67   }