14 * |
14 * |
15 */ |
15 */ |
16 |
16 |
17 #include<iostream> |
17 #include<iostream> |
18 #include<lemon/smart_graph.h> |
18 #include<lemon/smart_graph.h> |
19 #include<lemon/skeletons/graph.h> |
19 #include<lemon/concept/graph.h> |
20 #include<lemon/skeletons/maps.h> |
20 #include<lemon/concept/maps.h> |
21 #include<lemon/list_graph_base.h> |
21 #include<lemon/list_graph_base.h> |
22 #include<lemon/full_graph.h> |
22 #include<lemon/full_graph.h> |
23 |
23 |
24 #include"test_tools.h" |
24 #include"test_tools.h" |
25 #include"graph_test.h" |
25 #include"graph_test.h" |
66 checkGraphOutEdgeList(G,n,3); |
66 checkGraphOutEdgeList(G,n,3); |
67 } |
67 } |
68 } |
68 } |
69 |
69 |
70 //Compile Graph |
70 //Compile Graph |
71 template void lemon::skeleton::checkCompileStaticGraph<skeleton::StaticGraph> |
71 template void lemon::concept::checkCompileStaticGraph<concept::StaticGraph> |
72 (skeleton::StaticGraph &); |
72 (concept::StaticGraph &); |
73 |
73 |
74 template |
74 template |
75 void lemon::skeleton::checkCompileExtendableGraph<skeleton::ExtendableGraph> |
75 void lemon::concept::checkCompileExtendableGraph<concept::ExtendableGraph> |
76 (skeleton::ExtendableGraph &); |
76 (concept::ExtendableGraph &); |
77 |
77 |
78 template |
78 template |
79 void lemon::skeleton::checkCompileErasableGraph<skeleton::ErasableGraph> |
79 void lemon::concept::checkCompileErasableGraph<concept::ErasableGraph> |
80 (skeleton::ErasableGraph &); |
80 (concept::ErasableGraph &); |
81 |
81 |
82 //Compile SmartGraph |
82 //Compile SmartGraph |
83 template |
83 template |
84 void lemon::skeleton::checkCompileExtendableGraph<SmartGraph>(SmartGraph &); |
84 void lemon::concept::checkCompileExtendableGraph<SmartGraph>(SmartGraph &); |
85 template |
85 template |
86 void lemon::skeleton::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &); |
86 void lemon::concept::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &); |
87 |
87 |
88 //Compile SymSmartGraph |
88 //Compile SymSmartGraph |
89 //template void hugo::checkCompileGraph<SymSmartGraph>(SymSmartGraph &); |
89 //template void hugo::checkCompileGraph<SymSmartGraph>(SymSmartGraph &); |
90 //template void hugo::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &); |
90 //template void hugo::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &); |
91 |
91 |
92 //Compile ListGraph |
92 //Compile ListGraph |
93 template |
93 template |
94 void lemon::skeleton::checkCompileExtendableGraph<ListGraph>(ListGraph &); |
94 void lemon::concept::checkCompileExtendableGraph<ListGraph>(ListGraph &); |
95 template |
95 template |
96 void lemon::skeleton::checkCompileErasableGraph<ListGraph>(ListGraph &); |
96 void lemon::concept::checkCompileErasableGraph<ListGraph>(ListGraph &); |
97 template |
97 template |
98 void lemon::skeleton::checkCompileGraphFindEdge<ListGraph>(ListGraph &); |
98 void lemon::concept::checkCompileGraphFindEdge<ListGraph>(ListGraph &); |
99 |
99 |
100 |
100 |
101 //Compile SymListGraph |
101 //Compile SymListGraph |
102 //template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &); |
102 //template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &); |
103 //template void hugo::checkCompileErasableGraph<SymListGraph>(SymListGraph &); |
103 //template void hugo::checkCompileErasableGraph<SymListGraph>(SymListGraph &); |
104 //template void hugo::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &); |
104 //template void hugo::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &); |
105 |
105 |
106 //Compile FullGraph |
106 //Compile FullGraph |
107 template void lemon::skeleton::checkCompileStaticGraph<FullGraph>(FullGraph &); |
107 template void lemon::concept::checkCompileStaticGraph<FullGraph>(FullGraph &); |
108 template |
108 template |
109 void lemon::skeleton::checkCompileGraphFindEdge<FullGraph>(FullGraph &); |
109 void lemon::concept::checkCompileGraphFindEdge<FullGraph>(FullGraph &); |
110 |
110 |
111 |
111 |
112 int main() |
112 int main() |
113 { |
113 { |
114 { |
114 { |
139 ///\todo copy constr tests. |
139 ///\todo copy constr tests. |
140 |
140 |
141 |
141 |
142 // Some map tests. |
142 // Some map tests. |
143 // FIXME: These shouldn't be here. |
143 // FIXME: These shouldn't be here. |
144 using namespace skeleton; |
144 using namespace concept; |
145 function_requires< ReadMapConcept< ReadMap<int,int> > >(); |
145 function_requires< ReadMapConcept< ReadMap<int,int> > >(); |
146 function_requires< WriteMapConcept< WriteMap<int,int> > >(); |
146 function_requires< WriteMapConcept< WriteMap<int,int> > >(); |
147 function_requires< ReadWriteMapConcept< ReadWriteMap<int,int> > >(); |
147 function_requires< ReadWriteMapConcept< ReadWriteMap<int,int> > >(); |
148 function_requires< ReferenceMapConcept< ReferenceMap<int,int> > >(); |
148 function_requires< ReferenceMapConcept< ReferenceMap<int,int> > >(); |
149 |
149 |