ucommon::SeqCounter Class Reference

Automatically return a sequence of untyped objects. More...

#include <counter.h>

Inheritance diagram for ucommon::SeqCounter:
Inheritance graph
[legend]
Collaboration diagram for ucommon::SeqCounter:
Collaboration graph
[legend]

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)
 Get the next counter value.
 SeqCounter (void *start, size_t size, unsigned count)

Detailed Description

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.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 100 of file counter.h.


Member Function Documentation

void* ucommon::SeqCounter::get ( void   )  [protected]

Get the next counter value.

Returns:
next counter value.

Reimplemented from ucommon::counter.

Reimplemented in ucommon::sequence< T >.

void ucommon::SeqCounter::operator= ( unsigned  inc_offset  )  [inline]

Used to directly assign sequence position in template.

Parameters:
inc_offset in sequence to reset sequencing to.

Reimplemented from ucommon::counter.

Definition at line 118 of file counter.h.


The documentation for this class was generated from the following file:
Generated on Thu Jul 14 16:35:22 2011 for ucommon by  doxygen 1.6.3