Class DCircle

Inherits from:
Object
Conforms to:
DQueuable, DStackable
Declared in:
DCircle.h

Class Hierarchy

    Object
      |
      +---DCircle

Class Description

The circular buffer collection stores objects in an circular buffer that can grow. Objects can be read by an index, which can be negative for accessing elements from the end. This collection can be used for implementing a queue (FIFO) or a stack (LIFO).

Last modified:
31-Oct-2007 (DCircle.h)

Instance Variables

private id *_objects
the stored objects
private long _size
the size of the buffer
private long _first
the first element in the buffer (or -1 for empty)
private long _next
the next element in the buffer

Method Index


generated 05-Nov-2007 by ObjcDoc 3.0.0