Changeset 1756:b1f441f24d08 in lemon0.x for benchmark/bench_tools.h
 Timestamp:
 11/02/05 17:32:29 (14 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2288
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

benchmark/bench_tools.h
r1689 r1756 6 6 #include<iostream> 7 7 8 #include<lemon/graph_utils.h> 8 9 #include<lemon/time_measure.h> 9 10 ///An experimental typedef factory11 #define GRAPH_TYPEDEF_FACTORY(Graph) \12 typedef typename Graph:: Node Node;\13 typedef typename Graph:: NodeIt NodeIt;\14 typedef typename Graph:: Edge Edge;\15 typedef typename Graph:: EdgeIt EdgeIt;\16 typedef typename Graph:: InEdgeIt InEdgeIt;\17 typedef typename Graph::OutEdgeIt OutEdgeIt;18 19 #define GRAPH_TYPEDEF_FACTORY_NOTYPENAME(Graph) \20 typedef Graph:: Node Node;\21 typedef Graph:: NodeIt NodeIt;\22 typedef Graph:: Edge Edge;\23 typedef Graph:: EdgeIt EdgeIt;\24 typedef Graph:: InEdgeIt InEdgeIt;\25 typedef Graph::OutEdgeIt OutEdgeIt;26 27 10 28 11 ///A primitive primtest … … 94 77 void addHyperCube(Graph &G,int dim,std::vector<typename Graph::Node> &nodes) 95 78 { 96 GRAPH_TYPEDEF _FACTORY(Graph);79 GRAPH_TYPEDEFS(typename Graph); 97 80 98 81 std::vector<int> bits(dim+1); … … 110 93 void addBiDirHyperCube(Graph &G,int dim,std::vector<typename Graph::Node>&nodes) 111 94 { 112 GRAPH_TYPEDEF _FACTORY(Graph);95 GRAPH_TYPEDEFS(typename Graph); 113 96 114 97 std::vector<int> bits(dim+1);
Note: See TracChangeset
for help on using the changeset viewer.