Tests for the existence of 'KeyType' and 'ValueType' in the graph maps.
1.1 --- a/src/test/graph_test.cc Thu Sep 02 15:21:13 2004 +0000
1.2 +++ b/src/test/graph_test.cc Thu Sep 02 15:30:50 2004 +0000
1.3 @@ -132,6 +132,13 @@
1.4
1.5 m=cm;
1.6 dm=cm; //Copy from another type
1.7 + {
1.8 + //Check the typedef's
1.9 + typename Graph::template NodeMap<int>::ValueType val;
1.10 + val=1;
1.11 + typename Graph::template NodeMap<int>::KeyType key;
1.12 + key = typename Graph::NodeIt(G);
1.13 + }
1.14 }
1.15 { //bool NodeMap
1.16 Node k;
1.17 @@ -148,6 +155,14 @@
1.18 m=cm;
1.19 dm=cm; //Copy from another type
1.20 m=dm; //Copy to another type
1.21 +
1.22 + {
1.23 + //Check the typedef's
1.24 + typename Graph::template NodeMap<bool>::ValueType val;
1.25 + val=true;
1.26 + typename Graph::template NodeMap<bool>::KeyType key;
1.27 + key= typename Graph::NodeIt(G);
1.28 + }
1.29 }
1.30 //EdgeMap tests
1.31 {
1.32 @@ -164,6 +179,13 @@
1.33
1.34 m=cm;
1.35 dm=cm; //Copy from another type
1.36 + {
1.37 + //Check the typedef's
1.38 + typename Graph::template EdgeMap<int>::ValueType val;
1.39 + val=1;
1.40 + typename Graph::template EdgeMap<int>::KeyType key;
1.41 + key= typename Graph::EdgeIt(G);
1.42 + }
1.43 }
1.44 { //bool EdgeMap
1.45 Edge k;
1.46 @@ -180,6 +202,13 @@
1.47 m=cm;
1.48 dm=cm; //Copy from another type
1.49 m=dm; //Copy to another type
1.50 + {
1.51 + //Check the typedef's
1.52 + typename Graph::template EdgeMap<bool>::ValueType val;
1.53 + val=true;
1.54 + typename Graph::template EdgeMap<bool>::KeyType key;
1.55 + key= typename Graph::EdgeIt(G);
1.56 + }
1.57 }
1.58 }
1.59