Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsDequeFunctor Class Reference


#include <nsDeque.h>

Inheritance diagram for nsDequeFunctor:
Inheritance graph

List of all members.

Public Member Functions

virtual voidoperator() (void *anObject)=0

Detailed Description


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[0]. 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();

Definition at line 68 of file nsDeque.h.

Member Function Documentation

virtual void* nsDequeFunctor::operator() ( void anObject) [pure virtual]

The documentation for this class was generated from the following file: