Several changes. \n If new map is added to mapstorage it emits signal with the name of the new map. This was important, because from now on not only tha mapwin should be updated. \n Furthermore algobox gets a pointer to mapstorage instead of only the mapnames from it. This is important because without it it would be complicated to pass all of the required maps to algobox.
2 * test/counter_test.cc - Part of LEMON, a generic C++ optimization library
4 * Copyright (C) 2006 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
5 * (Egervary Research Group on Combinatorial Optimization, EGRES).
7 * Permission to use, modify and distribute this software is granted
8 * provided that this copyright notice appears in all copies. For
9 * precise terms see the accompanying LICENSE file.
11 * This software is provided "AS IS" with no warranty of any kind,
12 * express or implied, and with no claim as to its suitability for any
17 #include <lemon/counter.h>
19 ///\file \brief Test cases for time_measure.h
21 ///\todo To be extended
26 static lemon::Counter count("Fibonacci steps: ");
29 else if(f==1) return 1;
30 else return fibonacci(f-1)+fibonacci(f-2);
38 typedef lemon::Counter MyCounter;
39 MyCounter c("Main counter: ");
42 MyCounter::SubCounter d(c,"Subcounter: ");
45 MyCounter::SubCounter::SubCounter e(d,"SubSubCounter: ");
51 typedef lemon::NoCounter MyCounter;
52 MyCounter c("Main counter: ");
55 MyCounter::SubCounter d(c,"Subcounter: ");
58 MyCounter::SubCounter::SubCounter e(d,"SubSubCounter: ");