test/graph_adaptor_test.cc
changeset 2176 0f647e65ecad
parent 1991 d7442141d9ef
child 2231 06faf3f06d67
equal deleted inserted replaced
6:f95255c9d97d 7:e3955bdb44b7
    44 
    44 
    45 
    45 
    46 int main() 
    46 int main() 
    47 {
    47 {
    48   {
    48   {
    49     typedef StaticGraph Graph;
    49     typedef Graph Graph;
    50     checkConcept<StaticGraph, GraphAdaptor<Graph> >();
    50     checkConcept<Graph, GraphAdaptor<Graph> >();
    51 
    51 
    52     checkConcept<StaticGraph, RevGraphAdaptor<Graph> >();
    52     checkConcept<Graph, RevGraphAdaptor<Graph> >();
    53 
    53 
    54     checkConcept<StaticGraph, SubGraphAdaptor<Graph, 
    54     checkConcept<Graph, SubGraphAdaptor<Graph, 
    55       Graph::NodeMap<bool> , Graph::EdgeMap<bool> > >();
    55       Graph::NodeMap<bool> , Graph::EdgeMap<bool> > >();
    56     checkConcept<StaticGraph, NodeSubGraphAdaptor<Graph, 
    56     checkConcept<Graph, NodeSubGraphAdaptor<Graph, 
    57       Graph::NodeMap<bool> > >();
    57       Graph::NodeMap<bool> > >();
    58     checkConcept<StaticGraph, EdgeSubGraphAdaptor<Graph, 
    58     checkConcept<Graph, EdgeSubGraphAdaptor<Graph, 
    59       Graph::EdgeMap<bool> > >();
    59       Graph::EdgeMap<bool> > >();
    60     
    60     
    61     checkConcept<StaticGraph, ResGraphAdaptor<Graph, int, 
    61     checkConcept<Graph, ResGraphAdaptor<Graph, int, 
    62       Graph::EdgeMap<int>, Graph::EdgeMap<int> > >();
    62       Graph::EdgeMap<int>, Graph::EdgeMap<int> > >();
    63 
    63 
    64     checkConcept<StaticGraph, ErasingFirstGraphAdaptor<Graph, 
    64     checkConcept<Graph, ErasingFirstGraphAdaptor<Graph, 
    65       Graph::NodeMap<Graph::Edge> > >(); 
    65       Graph::NodeMap<Graph::Edge> > >(); 
    66 
    66 
    67     checkConcept<UGraph, UndirGraphAdaptor<Graph> >();
    67     checkConcept<UGraph, UndirGraphAdaptor<Graph> >();
    68 
    68 
    69     checkConcept<UGraph, SubUGraphAdaptor<UGraph, 
    69     checkConcept<UGraph, SubUGraphAdaptor<UGraph, 
    71     checkConcept<UGraph, NodeSubUGraphAdaptor<UGraph, 
    71     checkConcept<UGraph, NodeSubUGraphAdaptor<UGraph, 
    72       UGraph::NodeMap<bool> > >();
    72       UGraph::NodeMap<bool> > >();
    73     checkConcept<UGraph, EdgeSubUGraphAdaptor<UGraph, 
    73     checkConcept<UGraph, EdgeSubUGraphAdaptor<UGraph, 
    74       UGraph::UEdgeMap<bool> > >();
    74       UGraph::UEdgeMap<bool> > >();
    75 
    75 
    76     checkConcept<StaticGraph, DirUGraphAdaptor<UGraph, 
    76     checkConcept<Graph, DirUGraphAdaptor<UGraph, 
    77       UGraph::UEdgeMap<bool> > >();
    77       UGraph::UEdgeMap<bool> > >();
    78   }
    78   }
    79   std::cout << __FILE__ ": All tests passed.\n";
    79   std::cout << __FILE__ ": All tests passed.\n";
    80 
    80 
    81   return 0;
    81   return 0;