alpar@906: /* -*- C++ -*- alpar@921: * src/test/graph_wrapper_test.cc - Part of LEMON, a generic C++ optimization library alpar@906: * alpar@906: * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport alpar@906: * (Egervary Combinatorial Optimization Research Group, EGRES). alpar@906: * alpar@906: * Permission to use, modify and distribute this software is granted alpar@906: * provided that this copyright notice appears in all copies. For alpar@906: * precise terms see the accompanying LICENSE file. alpar@906: * alpar@906: * This software is provided "AS IS" with no warranty of any kind, alpar@906: * express or implied, and with no claim as to its suitability for any alpar@906: * purpose. alpar@906: * alpar@906: */ alpar@906: marci@849: #include alpar@921: #include alpar@921: #include alpar@921: #include alpar@921: #include alpar@921: #include marci@849: marci@870: #include"test/test_tools.h" marci@870: #include"test/graph_test.h" marci@849: marci@849: /** marci@849: \file alpar@878: This test makes consistency checks of graph wrappers. marci@849: alpar@878: \todo More extensive tests are needed marci@849: */ marci@849: alpar@921: using namespace lemon; marci@849: marci@849: marci@849: typedef SmartGraph Graph; deba@891: deba@891: //Compile GraphWrapper marci@849: typedef GraphWrapper GW; alpar@938: template void lemon::skeleton::checkCompileStaticGraph(GW &); marci@849: deba@891: //Compile RevGraphWrapper marci@849: typedef RevGraphWrapper RevGW; alpar@938: template void lemon::skeleton::checkCompileStaticGraph(RevGW &); deba@891: deba@891: //Compile SubGraphWrapper deba@891: typedef SubGraphWrapper, deba@891: Graph::EdgeMap > SubGW; alpar@938: template void lemon::skeleton::checkCompileStaticGraph(SubGW &); deba@891: marci@933: //Compile NodeSubGraphWrapper marci@933: typedef NodeSubGraphWrapper > NodeSubGW; alpar@938: template void lemon::skeleton::checkCompileStaticGraph(NodeSubGW &); marci@933: marci@933: //Compile EdgeSubGraphWrapper marci@933: typedef EdgeSubGraphWrapper > EdgeSubGW; alpar@938: template void lemon::skeleton::checkCompileStaticGraph(EdgeSubGW &); marci@933: deba@891: //Compile UndirGraphWrapper deba@891: /// \bug UndirGraphWrapper cannot pass the StaticGraph test deba@891: //typedef UndirGraphWrapper UndirGW; deba@891: //template void checkCompileStaticGraph(UndirGW &); deba@891: deba@891: //Compile UndirGraph deba@891: //typedef UndirGraph UndirG; deba@891: //template void checkCompileStaticGraph(UndirG &); deba@891: marci@892: //Compile SubBidirGraphWrapper marci@892: typedef SubBidirGraphWrapper, marci@892: Graph::EdgeMap > SubBDGW; alpar@938: template void lemon::skeleton::checkCompileStaticGraph(SubBDGW &); deba@891: deba@891: //Compile BidirGraphWrapper marci@892: typedef BidirGraphWrapper BidirGW; alpar@938: template void lemon::skeleton::checkCompileStaticGraph(BidirGW &); deba@891: deba@891: //Compile BidirGraph marci@892: typedef BidirGraph BidirG; alpar@938: template void lemon::skeleton::checkCompileStaticGraph(BidirG &); deba@891: deba@891: //Compile ResGraphWrapper marci@892: typedef ResGraphWrapper, marci@892: Graph::EdgeMap > ResGW; alpar@938: template void lemon::skeleton::checkCompileStaticGraph(ResGW &); deba@891: deba@891: //Compile ErasingFirstGraphWrapper deba@891: typedef ErasingFirstGraphWrapper > ErasingFirstGW; alpar@938: template alpar@938: void lemon::skeleton::checkCompileStaticGraph(ErasingFirstGW &); marci@849: marci@849: marci@849: int main() marci@849: { marci@849: std::cout << __FILE__ ": All tests passed.\n"; marci@849: marci@849: return 0; marci@849: }