ucommon/counter.h File Reference

Support for various automatic counting objects. More...

#include <ucommon/platform.h>
Include dependency graph for counter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  counter
 Automatic integer counting class. More...
class  SeqCounter
 Automatically return a sequence of untyped objects. More...
class  toggle
 Automatically toggle a bool on each reference. More...
class  sequence< T >
 A template to return a sequence of objects of a specified type. More...

Typedefs

typedef counter counter_t
 A convenience typecast for integer counters.
typedef toggle toggle_t
 A convenience typecast for auto-toggled bools.

Detailed Description

Support for various automatic counting objects.

This header defines templates for various kinds of automatic counting and sequencing objects. Templates are used to allow manipulation of various numerical-like types.

Definition in file counter.h.


Generated on 28 Dec 2009 for UCommon by  doxygen 1.6.1