src/test/graph_wrapper_test.cc
changeset 940 50a153b08f07
parent 933 1b7c88fbb950
child 946 c94ef40a22ce
equal deleted inserted replaced
6:1f444074a06b 7:36b63f0cb152
    36 
    36 
    37 typedef SmartGraph Graph;
    37 typedef SmartGraph Graph;
    38 
    38 
    39 //Compile GraphWrapper
    39 //Compile GraphWrapper
    40 typedef GraphWrapper<Graph> GW;
    40 typedef GraphWrapper<Graph> GW;
    41 template void checkCompileStaticGraph<GW>(GW &);
    41 template void lemon::skeleton::checkCompileStaticGraph<GW>(GW &);
    42 
    42 
    43 //Compile RevGraphWrapper
    43 //Compile RevGraphWrapper
    44 typedef RevGraphWrapper<Graph> RevGW;
    44 typedef RevGraphWrapper<Graph> RevGW;
    45 template void checkCompileStaticGraph<RevGW>(RevGW &);
    45 template void lemon::skeleton::checkCompileStaticGraph<RevGW>(RevGW &);
    46 
    46 
    47 //Compile SubGraphWrapper
    47 //Compile SubGraphWrapper
    48 typedef SubGraphWrapper<Graph, Graph::NodeMap<bool>, 
    48 typedef SubGraphWrapper<Graph, Graph::NodeMap<bool>, 
    49 			Graph::EdgeMap<bool> > SubGW;
    49 			Graph::EdgeMap<bool> > SubGW;
    50 template void checkCompileStaticGraph<SubGW>(SubGW &);
    50 template void lemon::skeleton::checkCompileStaticGraph<SubGW>(SubGW &);
    51 
    51 
    52 //Compile NodeSubGraphWrapper
    52 //Compile NodeSubGraphWrapper
    53 typedef NodeSubGraphWrapper<Graph, Graph::NodeMap<bool> > NodeSubGW;
    53 typedef NodeSubGraphWrapper<Graph, Graph::NodeMap<bool> > NodeSubGW;
    54 template void checkCompileStaticGraph<NodeSubGW>(NodeSubGW &);
    54 template void lemon::skeleton::checkCompileStaticGraph<NodeSubGW>(NodeSubGW &);
    55 
    55 
    56 //Compile EdgeSubGraphWrapper
    56 //Compile EdgeSubGraphWrapper
    57 typedef EdgeSubGraphWrapper<Graph, Graph::EdgeMap<bool> > EdgeSubGW;
    57 typedef EdgeSubGraphWrapper<Graph, Graph::EdgeMap<bool> > EdgeSubGW;
    58 template void checkCompileStaticGraph<EdgeSubGW>(EdgeSubGW &);
    58 template void lemon::skeleton::checkCompileStaticGraph<EdgeSubGW>(EdgeSubGW &);
    59 
    59 
    60 //Compile UndirGraphWrapper
    60 //Compile UndirGraphWrapper
    61 /// \bug UndirGraphWrapper cannot pass the StaticGraph test
    61 /// \bug UndirGraphWrapper cannot pass the StaticGraph test
    62 //typedef UndirGraphWrapper<Graph> UndirGW;
    62 //typedef UndirGraphWrapper<Graph> UndirGW;
    63 //template void checkCompileStaticGraph<UndirGW>(UndirGW &);
    63 //template void checkCompileStaticGraph<UndirGW>(UndirGW &);
    67 //template void checkCompileStaticGraph<UndirG>(UndirG &);
    67 //template void checkCompileStaticGraph<UndirG>(UndirG &);
    68 
    68 
    69 //Compile SubBidirGraphWrapper
    69 //Compile SubBidirGraphWrapper
    70 typedef SubBidirGraphWrapper<Graph, Graph::EdgeMap<bool>, 
    70 typedef SubBidirGraphWrapper<Graph, Graph::EdgeMap<bool>, 
    71 			     Graph::EdgeMap<bool> > SubBDGW;
    71 			     Graph::EdgeMap<bool> > SubBDGW;
    72 template void checkCompileStaticGraph<SubBDGW>(SubBDGW &);
    72 template void lemon::skeleton::checkCompileStaticGraph<SubBDGW>(SubBDGW &);
    73 
    73 
    74 //Compile BidirGraphWrapper
    74 //Compile BidirGraphWrapper
    75 typedef BidirGraphWrapper<Graph> BidirGW;
    75 typedef BidirGraphWrapper<Graph> BidirGW;
    76 template void checkCompileStaticGraph<BidirGW>(BidirGW &);
    76 template void lemon::skeleton::checkCompileStaticGraph<BidirGW>(BidirGW &);
    77 
    77 
    78 //Compile BidirGraph
    78 //Compile BidirGraph
    79 typedef BidirGraph<Graph> BidirG;
    79 typedef BidirGraph<Graph> BidirG;
    80 template void checkCompileStaticGraph<BidirG>(BidirG &);
    80 template void lemon::skeleton::checkCompileStaticGraph<BidirG>(BidirG &);
    81 
    81 
    82 //Compile ResGraphWrapper
    82 //Compile ResGraphWrapper
    83 typedef ResGraphWrapper<Graph, int, Graph::EdgeMap<int>, 
    83 typedef ResGraphWrapper<Graph, int, Graph::EdgeMap<int>, 
    84 			Graph::EdgeMap<int> > ResGW;
    84 			Graph::EdgeMap<int> > ResGW;
    85 template void checkCompileStaticGraph<ResGW>(ResGW &);
    85 template void lemon::skeleton::checkCompileStaticGraph<ResGW>(ResGW &);
    86 
    86 
    87 //Compile ErasingFirstGraphWrapper
    87 //Compile ErasingFirstGraphWrapper
    88 typedef ErasingFirstGraphWrapper<Graph, Graph::NodeMap<Graph::Edge> > ErasingFirstGW;
    88 typedef ErasingFirstGraphWrapper<Graph, Graph::NodeMap<Graph::Edge> > ErasingFirstGW;
    89 template void checkCompileStaticGraph<ErasingFirstGW>(ErasingFirstGW &);
    89 template
       
    90 void lemon::skeleton::checkCompileStaticGraph<ErasingFirstGW>(ErasingFirstGW &);
    90 
    91 
    91 
    92 
    92 int main() 
    93 int main() 
    93 {
    94 {
    94   std::cout << __FILE__ ": All tests passed.\n";
    95   std::cout << __FILE__ ": All tests passed.\n";