1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/work/marci/macro_test.cc Thu Apr 15 14:41:20 2004 +0000
1.3 @@ -0,0 +1,28 @@
1.4 +// -*- c++ -*-
1.5 +#include <iostream>
1.6 +#include <fstream>
1.7 +
1.8 +#include <list_graph.h>
1.9 +#include <for_each_macros.h>
1.10 +
1.11 +using namespace hugo;
1.12 +
1.13 +int main()
1.14 +{
1.15 + typedef ListGraph Graph;
1.16 + Graph g;
1.17 + Graph::Node n1=g.addNode();
1.18 + Graph::Node n2=g.addNode();
1.19 + Graph::NodeIt n;
1.20 + FOR_EACH(n, g) {
1.21 + std::cout << g.id(n) << " ";
1.22 + }
1.23 + std::cout << std::endl;
1.24 + FOR_EACH_LOC(Graph::NodeIt, m, g) {
1.25 + std::cout << g.id(m) << " ";
1.26 + }
1.27 + std::cout << std::endl;
1.28 +
1.29 +
1.30 + return 0;
1.31 +}