COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
05/04/05 15:07:10 (17 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1863
Message:

wrapper -> adaptor

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/test/graph_adaptor_test.cc

    r1383 r1401  
    11/* -*- C++ -*-
    2  * src/test/graph_wrapper_test.cc - Part of LEMON, a generic C++ optimization library
     2 * src/test/graph_adaptor_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    2424#include<lemon/list_graph.h>
    2525#include<lemon/full_graph.h>
    26 #include<lemon/graph_wrapper.h>
     26#include<lemon/graph_adaptor.h>
    2727
    2828#include"test/test_tools.h"
     
    3131/**
    3232\file
    33 This test makes consistency checks of graph wrappers.
     33This test makes consistency checks of graph adaptors.
    3434
    3535\todo More extensive tests are needed
     
    4545  {
    4646    typedef StaticGraph Graph;
    47     checkConcept<StaticGraph, GraphWrapper<Graph> >();
     47    checkConcept<StaticGraph, GraphAdaptor<Graph> >();
    4848
    49     checkConcept<StaticGraph, RevGraphWrapper<Graph> >();
     49    checkConcept<StaticGraph, RevGraphAdaptor<Graph> >();
    5050
    51     checkConcept<StaticGraph, SubGraphWrapper<Graph,
     51    checkConcept<StaticGraph, SubGraphAdaptor<Graph,
    5252      Graph::NodeMap<bool> , Graph::EdgeMap<bool> > >();
    53     checkConcept<StaticGraph, NodeSubGraphWrapper<Graph,
     53    checkConcept<StaticGraph, NodeSubGraphAdaptor<Graph,
    5454      Graph::NodeMap<bool> > >();
    55     checkConcept<StaticGraph, EdgeSubGraphWrapper<Graph,
     55    checkConcept<StaticGraph, EdgeSubGraphAdaptor<Graph,
    5656      Graph::EdgeMap<bool> > >();
    5757   
    58     checkConcept<StaticGraph, SubBidirGraphWrapper<Graph,
     58    checkConcept<StaticGraph, SubBidirGraphAdaptor<Graph,
    5959      Graph::EdgeMap<bool>, Graph::EdgeMap<bool> > >();
    6060    //    checkConcept<StaticGraph, BidirGraph<Graph> >();
    61     checkConcept<StaticGraph, ResGraphWrapper<Graph, int,
     61    checkConcept<StaticGraph, ResGraphAdaptor<Graph, int,
    6262      Graph::EdgeMap<int>, Graph::EdgeMap<int> > >();
    6363
    64     checkConcept<StaticGraph, ErasingFirstGraphWrapper<Graph,
     64    checkConcept<StaticGraph, ErasingFirstGraphAdaptor<Graph,
    6565      Graph::NodeMap<Graph::Edge> > >();
    6666
    6767    /// \bug why does not compile with StaticGraph
    68     checkConcept<BaseIterableUndirGraphConcept, UndirGraphWrapper<ListGraph> >();
    69     checkConcept<IterableUndirGraphConcept, UndirGraphWrapper<ListGraph> >();
    70     checkConcept<MappableUndirGraphConcept, UndirGraphWrapper<ListGraph> >();
     68    checkConcept<BaseIterableUndirGraphConcept, UndirGraphAdaptor<ListGraph> >();
     69    checkConcept<IterableUndirGraphConcept, UndirGraphAdaptor<ListGraph> >();
     70    checkConcept<MappableUndirGraphConcept, UndirGraphAdaptor<ListGraph> >();
    7171  }
    7272  std::cout << __FILE__ ": All tests passed.\n";
Note: See TracChangeset for help on using the changeset viewer.