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 | |
SeqCounter (void *start, size_t size, unsigned count) | |
void * | get (void) |
Get the next counter value. | |
void * | get (unsigned idx) |
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.
Definition at line 100 of file counter.h.
void* ucc::SeqCounter::get | ( | void | ) | [protected] |
Get the next counter value.
Reimplemented from ucc::counter.
Reimplemented in ucc::sequence< T >.
void ucc::SeqCounter::operator= | ( | unsigned | inc_offset | ) | [inline] |
Used to directly assign sequence position in template.
inc_offset | in sequence to reset sequencing to. |
Reimplemented from ucc::counter.