Changeset 515:a7eeb8af6b34 in lemon0.x for src/test/graph_test.cc
 Timestamp:
 05/03/04 19:06:38 (17 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@675
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/test/graph_test.cc
r504 r515 109 109 { 110 110 Node k; 111 typename Graph::NodeMap<int> m(G); 112 typename Graph::NodeMap<int> const &cm = m; //Const map 113 typename Graph::NodeMap<int> mdef(G,12); //Inicialize with default value 114 typename Graph::NodeMap<int> mm(cm); //Copy 115 typename Graph::NodeMap<double> dm(cm); //Copy from another type 111 typename Graph::template NodeMap<int> m(G); 112 typename Graph::template NodeMap<int> const &cm = m; //Const map 113 //Inicialize with default value 114 typename Graph::template NodeMap<int> mdef(G,12); 115 typename Graph::template NodeMap<int> mm(cm); //Copy 116 typename Graph::template NodeMap<double> dm(cm); //Copy from another type 116 117 int v; 117 118 v=m[k]; m[k]=v; m.set(k,v); … … 123 124 { //bool NodeMap 124 125 Node k; 125 typename Graph::NodeMap<bool> m(G); 126 typename Graph::NodeMap<bool> const &cm = m; //Const map 127 typename Graph::NodeMap<bool> mdef(G,12); //Inicialize with default value 128 typename Graph::NodeMap<bool> mm(cm); //Copy 129 typename Graph::NodeMap<int> dm(cm); //Copy from another type 126 typename Graph::template NodeMap<bool> m(G); 127 typename Graph::template NodeMap<bool> const &cm = m; //Const map 128 //Inicialize with default value 129 typename Graph::template NodeMap<bool> mdef(G,12); 130 typename Graph::template NodeMap<bool> mm(cm); //Copy 131 typename Graph::template NodeMap<int> dm(cm); //Copy from another type 130 132 bool v; 131 133 v=m[k]; m[k]=v; m.set(k,v); … … 139 141 { 140 142 Edge k; 141 typename Graph::EdgeMap<int> m(G); 142 typename Graph::EdgeMap<int> const &cm = m; //Const map 143 typename Graph::EdgeMap<int> mdef(G,12); //Inicialize with default value 144 typename Graph::EdgeMap<int> mm(cm); //Copy 145 typename Graph::EdgeMap<double> dm(cm); //Copy from another type 143 typename Graph::template EdgeMap<int> m(G); 144 typename Graph::template EdgeMap<int> const &cm = m; //Const map 145 //Inicialize with default value 146 typename Graph::template EdgeMap<int> mdef(G,12); 147 typename Graph::template EdgeMap<int> mm(cm); //Copy 148 typename Graph::template EdgeMap<double> dm(cm); //Copy from another type 146 149 int v; 147 150 v=m[k]; m[k]=v; m.set(k,v); … … 153 156 { //bool EdgeMap 154 157 Edge k; 155 typename Graph::EdgeMap<bool> m(G); 156 typename Graph::EdgeMap<bool> const &cm = m; //Const map 157 typename Graph::EdgeMap<bool> mdef(G,12); //Inicialize with default value 158 typename Graph::EdgeMap<bool> mm(cm); //Copy 159 typename Graph::EdgeMap<int> dm(cm); //Copy from another type 158 typename Graph::template EdgeMap<bool> m(G); 159 typename Graph::template EdgeMap<bool> const &cm = m; //Const map 160 //Inicialize with default value 161 typename Graph::template EdgeMap<bool> mdef(G,12); 162 typename Graph::template EdgeMap<bool> mm(cm); //Copy 163 typename Graph::template EdgeMap<int> dm(cm); //Copy from another type 160 164 bool v; 161 165 v=m[k]; m[k]=v; m.set(k,v);
Note: See TracChangeset
for help on using the changeset viewer.