Changeset 2111:ea1fa1bc3f6d in lemon-0.x for test
- Timestamp:
- 06/28/06 17:06:24 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2817
- Location:
- test
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
test/bfs_test.cc
r1956 r2111 30 30 void check_Bfs_Compile() 31 31 { 32 typedef concept:: StaticGraph Graph;32 typedef concept::Graph Graph; 33 33 34 34 typedef Graph::Edge Edge; … … 67 67 { 68 68 typedef int VType; 69 typedef concept:: StaticGraph Graph;69 typedef concept::Graph Graph; 70 70 71 71 typedef Graph::Edge Edge; -
test/dfs_test.cc
r1956 r2111 30 30 void check_Dfs_SmartGraph_Compile() 31 31 { 32 typedef concept:: StaticGraph Graph;32 typedef concept::Graph Graph; 33 33 34 34 typedef Graph::Edge Edge; … … 68 68 { 69 69 typedef int VType; 70 typedef concept:: StaticGraph Graph;70 typedef concept::Graph Graph; 71 71 72 72 typedef Graph::Edge Edge; -
test/dijkstra_test.cc
r1956 r2111 32 32 { 33 33 typedef int VType; 34 typedef concept:: StaticGraph Graph;34 typedef concept::Graph Graph; 35 35 36 36 typedef Graph::Edge Edge; … … 71 71 { 72 72 typedef int VType; 73 typedef concept:: StaticGraph Graph;73 typedef concept::Graph Graph; 74 74 75 75 typedef Graph::Edge Edge; -
test/edge_set_test.cc
r1990 r2111 18 18 using namespace lemon::concept; 19 19 20 typedef SmartGraph Graph;20 typedef SmartGraph RGraph; 21 21 22 22 int main() { 23 23 { // checking edge_sets 24 checkConcept< StaticGraph, ListEdgeSet<Graph> >();25 checkConcept<UGraph, ListUEdgeSet< Graph> >();26 checkConcept< StaticGraph, SmartEdgeSet<Graph> >();27 checkConcept<UGraph, SmartUEdgeSet< Graph> >();24 checkConcept<Graph, ListEdgeSet<RGraph> >(); 25 checkConcept<UGraph, ListUEdgeSet<RGraph> >(); 26 checkConcept<Graph, SmartEdgeSet<RGraph> >(); 27 checkConcept<UGraph, SmartUEdgeSet<RGraph> >(); 28 28 } 29 29 -
test/graph_adaptor_test.cc
r1991 r2111 47 47 { 48 48 { 49 typedef StaticGraph Graph;50 checkConcept< StaticGraph, GraphAdaptor<Graph> >();49 typedef Graph 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 55 Graph::NodeMap<bool> , Graph::EdgeMap<bool> > >(); 56 checkConcept< StaticGraph, NodeSubGraphAdaptor<Graph,56 checkConcept<Graph, NodeSubGraphAdaptor<Graph, 57 57 Graph::NodeMap<bool> > >(); 58 checkConcept< StaticGraph, EdgeSubGraphAdaptor<Graph,58 checkConcept<Graph, EdgeSubGraphAdaptor<Graph, 59 59 Graph::EdgeMap<bool> > >(); 60 60 61 checkConcept< StaticGraph, ResGraphAdaptor<Graph, int,61 checkConcept<Graph, ResGraphAdaptor<Graph, int, 62 62 Graph::EdgeMap<int>, Graph::EdgeMap<int> > >(); 63 63 64 checkConcept< StaticGraph, ErasingFirstGraphAdaptor<Graph,64 checkConcept<Graph, ErasingFirstGraphAdaptor<Graph, 65 65 Graph::NodeMap<Graph::Edge> > >(); 66 66 … … 74 74 UGraph::UEdgeMap<bool> > >(); 75 75 76 checkConcept< StaticGraph, DirUGraphAdaptor<UGraph,76 checkConcept<Graph, DirUGraphAdaptor<UGraph, 77 77 UGraph::UEdgeMap<bool> > >(); 78 78 } -
test/graph_factory_test.cc
r1956 r2111 71 71 72 72 //Compile Graph 73 template void lemon::concept::checkCompile StaticGraph<concept::StaticGraph>74 (concept:: StaticGraph &);73 template void lemon::concept::checkCompileGraph<concept::Graph> 74 (concept::Graph &); 75 75 76 76 template 77 void lemon::concept::checkCompile ExtendableGraph<concept::ExtendableGraph>78 (concept:: ExtendableGraph &);77 void lemon::concept::checkCompileGraph<concept::Graph> 78 (concept::Graph &); 79 79 80 80 template 81 void lemon::concept::checkCompile ErasableGraph<concept::ErasableGraph>82 (concept:: ErasableGraph &);81 void lemon::concept::checkCompileGraph<concept::Graph> 82 (concept::Graph &); 83 83 84 84 //Compile SmartGraph 85 85 template 86 void lemon::concept::checkCompile ExtendableGraph<SmartGraph>(SmartGraph &);86 void lemon::concept::checkCompileGraph<SmartGraph>(SmartGraph &); 87 87 template 88 88 void lemon::concept::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &); … … 94 94 //Compile ListGraph 95 95 template 96 void lemon::concept::checkCompile ExtendableGraph<ListGraph>(ListGraph &);96 void lemon::concept::checkCompileGraph<ListGraph>(ListGraph &); 97 97 template 98 void lemon::concept::checkCompile ErasableGraph<ListGraph>(ListGraph &);98 void lemon::concept::checkCompileGraph<ListGraph>(ListGraph &); 99 99 template 100 100 void lemon::concept::checkCompileGraphFindEdge<ListGraph>(ListGraph &); … … 103 103 //Compile SymListGraph 104 104 //template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &); 105 //template void hugo::checkCompile ErasableGraph<SymListGraph>(SymListGraph &);105 //template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &); 106 106 //template void hugo::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &); 107 107 108 108 //Compile FullGraph 109 template void lemon::concept::checkCompile StaticGraph<FullGraph>(FullGraph &);109 template void lemon::concept::checkCompileGraph<FullGraph>(FullGraph &); 110 110 template 111 111 void lemon::concept::checkCompileGraphFindEdge<FullGraph>(FullGraph &); -
test/graph_test.cc
r1956 r2111 44 44 checkConcept<MaxIDableGraphComponent, MaxIDableGraphComponent >(); 45 45 46 checkConcept<BaseExtendableGraphComponent, BaseExtendableGraphComponent >();47 checkConcept<BaseErasableGraphComponent, BaseErasableGraphComponent >();48 49 46 checkConcept<IterableGraphComponent, IterableGraphComponent >(); 50 47 51 48 checkConcept<MappableGraphComponent, MappableGraphComponent >(); 52 49 53 checkConcept<ExtendableGraphComponent, ExtendableGraphComponent >();54 checkConcept<ErasableGraphComponent, ErasableGraphComponent >();55 checkConcept<ClearableGraphComponent, ClearableGraphComponent >();56 50 } 57 51 { // checking skeleton graphs 58 checkConcept<StaticGraph, StaticGraph >(); 59 checkConcept<ExtendableGraph, ExtendableGraph >(); 60 checkConcept<ErasableGraph, ErasableGraph >(); 52 checkConcept<Graph, Graph >(); 61 53 } 62 54 { // checking list graph 63 checkConcept< ErasableGraph, ListGraph >();55 checkConcept<Graph, ListGraph >(); 64 56 65 57 checkGraph<ListGraph>(); … … 68 60 } 69 61 { // checking smart graph 70 checkConcept< ExtendableGraph, SmartGraph >();62 checkConcept<Graph, SmartGraph >(); 71 63 72 64 checkGraph<SmartGraph>(); … … 75 67 } 76 68 { // checking full graph 77 checkConcept< StaticGraph, FullGraph >();69 checkConcept<Graph, FullGraph >(); 78 70 } 79 71 { // checking full graph 80 checkConcept< StaticGraph, HyperCubeGraph >();72 checkConcept<Graph, HyperCubeGraph >(); 81 73 } 82 74 -
test/kruskal_test.cc
r1956 r2111 33 33 void checkCompileKruskal() 34 34 { 35 concept::WriteMap<concept:: StaticGraph::Edge,bool> w;35 concept::WriteMap<concept::Graph::Edge,bool> w; 36 36 37 kruskal(concept:: StaticGraph(),38 concept::ReadMap<concept:: StaticGraph::Edge,int>(),37 kruskal(concept::Graph(), 38 concept::ReadMap<concept::Graph::Edge,int>(), 39 39 w); 40 40 } -
test/preflow_test.cc
r2108 r2111 32 32 { 33 33 typedef int VType; 34 typedef concept:: StaticGraph Graph;34 typedef concept::Graph Graph; 35 35 36 36 typedef Graph::Node Node; -
test/ugraph_test.cc
r1979 r2111 34 34 void check_concepts() { 35 35 checkConcept<UGraph, ListUGraph>(); 36 checkConcept<ErasableUGraph, ListUGraph>();37 36 38 37 checkConcept<UGraph, SmartUGraph>(); 39 checkConcept<ExtendableUGraph, SmartUGraph>();40 38 41 39 checkConcept<UGraph, FullUGraph>();
Note: See TracChangeset
for help on using the changeset viewer.