COIN-OR::LEMON - Graph Library

Changeset 1081:f1398882a928 in lemon for test/maps_test.cc


Ignore:
Timestamp:
08/08/11 12:36:16 (9 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
1.1
Phase:
public
Tags:
r1.1.4
Message:

Unify sources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/maps_test.cc

    r731 r1081  
    33 * This file is a part of LEMON, a generic C++ optimization library.
    44 *
    5  * Copyright (C) 2003-2009
     5 * Copyright (C) 2003-2011
    66 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    77 * (Egervary Research Group on Combinatorial Optimization, EGRES).
     
    7171  checkConcept<ReadWriteMap<A,B>, ReadWriteMap<A,B> >();
    7272  checkConcept<ReadWriteMap<A,C>, ReadWriteMap<A,C> >();
    73   checkConcept<ReferenceMap<A,B,B&,const B&>, ReferenceMap<A,B,B&,const B&> >();
    74   checkConcept<ReferenceMap<A,C,C&,const C&>, ReferenceMap<A,C,C&,const C&> >();
     73  checkConcept<ReferenceMap<A,B,B&,const B&>,
     74               ReferenceMap<A,B,B&,const B&> >();
     75  checkConcept<ReferenceMap<A,C,C&,const C&>,
     76               ReferenceMap<A,C,C&,const C&> >();
    7577
    7678  // NullMap
     
    201203
    202204    checkConcept<ReadMap<A,B>, MapToFunctor<ReadMap<A,B> > >();
    203     MapToFunctor<ReadMap<A,B> > map = MapToFunctor<ReadMap<A,B> >(ReadMap<A,B>());
     205    MapToFunctor<ReadMap<A,B> > map =
     206      MapToFunctor<ReadMap<A,B> >(ReadMap<A,B>());
    204207
    205208    check(functorToMap(&func)[A()] == 3,
     
    350353      check(v1[i++] == *it, "Something is wrong with LoggerBoolMap");
    351354  }
    352  
     355
    353356  // CrossRefMap
    354357  {
     
    358361    checkConcept<ReadWriteMap<Node, int>,
    359362                 CrossRefMap<Graph, Node, int> >();
    360    
     363
    361364    Graph gr;
    362365    typedef CrossRefMap<Graph, Node, char> CRMap;
    363366    typedef CRMap::ValueIterator ValueIt;
    364367    CRMap map(gr);
    365    
     368
    366369    Node n0 = gr.addNode();
    367370    Node n1 = gr.addNode();
    368371    Node n2 = gr.addNode();
    369    
     372
    370373    map.set(n0, 'A');
    371374    map.set(n1, 'B');
Note: See TracChangeset for help on using the changeset viewer.