Back to index
MODULE NOTES: More...
|virtual void *||operator() (void *anObject)=0|
The Deque is a very small, very efficient container object than can hold elements of type void*, offering the following features: Its interface supports pushing and popping of elements. It can iterate (via an interator class) its elements. When full, it can efficiently resize dynamically.
NOTE: The only bit of trickery here is that this deque is built upon a ring-buffer. Like all ring buffers, the first element may not be at index. The mOrigin member determines where the first child is. This point is quietly hidden from customers of this class. The nsDequeFunctor class is used when you want to create callbacks between the deque and your generic code. Use these objects in a call to ForEach();