diff -r 0dade87d013b -r 7ac0d4e8a31c src/work/marci/macro_test.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/work/marci/macro_test.cc Thu Apr 15 14:41:20 2004 +0000 @@ -0,0 +1,28 @@ +// -*- c++ -*- +#include +#include + +#include +#include + +using namespace hugo; + +int main() +{ + typedef ListGraph Graph; + Graph g; + Graph::Node n1=g.addNode(); + Graph::Node n2=g.addNode(); + Graph::NodeIt n; + FOR_EACH(n, g) { + std::cout << g.id(n) << " "; + } + std::cout << std::endl; + FOR_EACH_LOC(Graph::NodeIt, m, g) { + std::cout << g.id(m) << " "; + } + std::cout << std::endl; + + + return 0; +}