test/graph_factory_test.cc
changeset 2368 6b2e8b734ae7
parent 2111 ea1fa1bc3f6d
child 2391 14a343be7a5a
equal deleted inserted replaced
3:f6aa53250ea9 4:8aa361a6c330
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 #include<iostream>
    19 #include<iostream>
    20 #include<lemon/smart_graph.h>
    20 #include<lemon/smart_graph.h>
    21 #include<lemon/concept/graph.h>
    21 #include<lemon/concepts/graph.h>
    22 #include<lemon/concept/maps.h>
    22 #include<lemon/concepts/maps.h>
    23 #include<lemon/list_graph_base.h>
    23 #include<lemon/list_graph_base.h>
    24 #include<lemon/full_graph.h>
    24 #include<lemon/full_graph.h>
    25 
    25 
    26 #include"test_tools.h"
    26 #include"test_tools.h"
    27 #include"graph_test.h"
    27 #include"graph_test.h"
    68     checkGraphOutEdgeList(G,n,3);
    68     checkGraphOutEdgeList(G,n,3);
    69   }  
    69   }  
    70 }
    70 }
    71 
    71 
    72 //Compile Graph
    72 //Compile Graph
    73 template void lemon::concept::checkCompileGraph<concept::Graph>
    73 template void lemon::concepts::checkCompileGraph<concepts::Graph>
    74 (concept::Graph &);
    74 (concepts::Graph &);
    75 
    75 
    76 template
    76 template
    77 void lemon::concept::checkCompileGraph<concept::Graph>
    77 void lemon::concepts::checkCompileGraph<concepts::Graph>
    78 (concept::Graph &);
    78 (concepts::Graph &);
    79 
    79 
    80 template
    80 template
    81 void lemon::concept::checkCompileGraph<concept::Graph>
    81 void lemon::concepts::checkCompileGraph<concepts::Graph>
    82 (concept::Graph &);
    82 (concepts::Graph &);
    83 
    83 
    84 //Compile SmartGraph
    84 //Compile SmartGraph
    85 template
    85 template
    86 void lemon::concept::checkCompileGraph<SmartGraph>(SmartGraph &);
    86 void lemon::concepts::checkCompileGraph<SmartGraph>(SmartGraph &);
    87 template
    87 template
    88 void lemon::concept::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &);
    88 void lemon::concepts::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &);
    89 
    89 
    90 //Compile SymSmartGraph
    90 //Compile SymSmartGraph
    91 //template void hugo::checkCompileGraph<SymSmartGraph>(SymSmartGraph &);
    91 //template void hugo::checkCompileGraph<SymSmartGraph>(SymSmartGraph &);
    92 //template void hugo::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &);
    92 //template void hugo::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &);
    93 
    93 
    94 //Compile ListGraph
    94 //Compile ListGraph
    95 template
    95 template
    96 void lemon::concept::checkCompileGraph<ListGraph>(ListGraph &);
    96 void lemon::concepts::checkCompileGraph<ListGraph>(ListGraph &);
    97 template
    97 template
    98 void lemon::concept::checkCompileGraph<ListGraph>(ListGraph &);
    98 void lemon::concepts::checkCompileGraph<ListGraph>(ListGraph &);
    99 template
    99 template
   100 void lemon::concept::checkCompileGraphFindEdge<ListGraph>(ListGraph &);
   100 void lemon::concepts::checkCompileGraphFindEdge<ListGraph>(ListGraph &);
   101 
   101 
   102 
   102 
   103 //Compile SymListGraph
   103 //Compile SymListGraph
   104 //template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &);
   104 //template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &);
   105 //template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &);
   105 //template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &);
   106 //template void hugo::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &);
   106 //template void hugo::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &);
   107 
   107 
   108 //Compile FullGraph
   108 //Compile FullGraph
   109 template void lemon::concept::checkCompileGraph<FullGraph>(FullGraph &);
   109 template void lemon::concepts::checkCompileGraph<FullGraph>(FullGraph &);
   110 template
   110 template
   111 void lemon::concept::checkCompileGraphFindEdge<FullGraph>(FullGraph &);
   111 void lemon::concepts::checkCompileGraphFindEdge<FullGraph>(FullGraph &);
   112 
   112 
   113 
   113 
   114 int main() 
   114 int main() 
   115 {
   115 {
   116   {
   116   {
   141   ///\todo copy constr tests.
   141   ///\todo copy constr tests.
   142 
   142 
   143 
   143 
   144   // Some map tests.
   144   // Some map tests.
   145   // FIXME: These shouldn't be here.
   145   // FIXME: These shouldn't be here.
   146   using namespace concept;
   146   using namespace concepts;
   147   function_requires< ReadMapConcept< ReadMap<int,int> > >();
   147   function_requires< ReadMapConcept< ReadMap<int,int> > >();
   148   function_requires< WriteMapConcept< WriteMap<int,int> > >();
   148   function_requires< WriteMapConcept< WriteMap<int,int> > >();
   149   function_requires< ReadWriteMapConcept< ReadWriteMap<int,int> > >();
   149   function_requires< ReadWriteMapConcept< ReadWriteMap<int,int> > >();
   150   function_requires< ReferenceMapConcept< ReferenceMap<int,int> > >();
   150   function_requires< ReferenceMapConcept< ReferenceMap<int,int> > >();
   151 
   151