alpar@906: /* -*- C++ -*- alpar@906: * src/test/graph_wrapper_test.cc - Part of HUGOlib, 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 marci@849: #include marci@849: #include marci@849: #include marci@849: #include marci@849: #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: marci@849: using namespace hugo; marci@849: marci@849: marci@849: typedef SmartGraph Graph; deba@891: deba@891: //Compile GraphWrapper marci@849: typedef GraphWrapper GW; marci@849: template void checkCompileStaticGraph(GW &); marci@849: deba@891: //Compile RevGraphWrapper marci@849: typedef RevGraphWrapper RevGW; marci@849: template void checkCompileStaticGraph(RevGW &); deba@891: deba@891: //Compile SubGraphWrapper deba@891: typedef SubGraphWrapper, deba@891: Graph::EdgeMap > SubGW; deba@891: template void checkCompileStaticGraph(SubGW &); deba@891: 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; marci@892: template void checkCompileStaticGraph(SubBDGW &); deba@891: deba@891: //Compile BidirGraphWrapper marci@892: typedef BidirGraphWrapper BidirGW; marci@892: template void checkCompileStaticGraph(BidirGW &); deba@891: deba@891: //Compile BidirGraph marci@892: typedef BidirGraph BidirG; marci@892: template void checkCompileStaticGraph(BidirG &); deba@891: deba@891: //Compile ResGraphWrapper marci@892: typedef ResGraphWrapper, marci@892: Graph::EdgeMap > ResGW; marci@892: template void checkCompileStaticGraph(ResGW &); deba@891: deba@891: //Compile ErasingFirstGraphWrapper deba@891: typedef ErasingFirstGraphWrapper > ErasingFirstGW; deba@891: template void 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: }