UCommon
|
Automatically return a sequence of untyped objects. More...
#include <counter.h>
Public Member Functions | |
void | operator= (unsigned inc_offset) |
Used to directly assign sequence position in template. | |
Protected Member Functions | |
void * | get (unsigned idx) |
void * | get (void) |
SeqCounter (void *start, size_t size, unsigned count) | |
![]() | |
counter () | |
Initialize integer counter of unknown size. | |
counter (unsigned limit) | |
Initialize integer counter for a range of values. | |
unsigned | get (void) |
Get the next counter value. | |
operator unsigned () | |
Reference next counter value by casting to integer. | |
unsigned | operator* () |
Reference next counter value through pointer operation. | |
void | operator= (unsigned value) |
Assign the value of the counter. | |
unsigned | range (void) |
Get the range of values before recycling. | |
Automatically return a sequence of untyped objects.
This is an automatic counter based class which returns the next pointer in an array of pointers and restarts the list when reaching the end. This is used to support the sequence template.
|
inline |