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