COIN-OR::LEMON - Graph Library

Changeset 1675:fa89ffb27a6d in lemon-0.x for test/map_test.h


Ignore:
Timestamp:
09/08/05 16:34:50 (15 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2193
Message:

Redesign of the map adaptors.
/smart reference handling only used by functions/

Better handling of the function objects and functions.


\todo May we use operators instead of the addMap, subMap...?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/map_test.h

    r1435 r1675  
    5050      map[nodes.back()] = 23;
    5151    }
     52    map = constMap<Node>(12);
     53    for (int i = 0; i < (int)nodes.size(); ++i) {
     54      check(map[nodes[i]] == 12, "Wrong map constructor.");     
     55    }   
    5256    graph.clear();
    5357    nodes.clear();
     
    8791      }
    8892    }
     93    map = constMap<Edge>(12);
     94    for (int i = 0; i < (int)edges.size(); ++i) {
     95      check(map[edges[i]] == 12, "Wrong map constructor.");     
     96    }   
    8997    graph.clear();
    9098    edges.clear();   
Note: See TracChangeset for help on using the changeset viewer.