Tools.h++ Class Reference

Table Of Contents
size_t
entries() const;
Returns the number of items in the queue.
type*
first() const;
Returns the first item in the queue, or nil if the queue is empty.
type*
get();
Returns and removes the first item in the queue. Returns nil if the queue is empty.
RWBoolean
isEmpty() const;
Returns TRUE if the queue is empty, otherwise FALSE.
type*
insert(type* a);
Calls append(type*) with a as the argument.
type*
last();
Returns the last (most recently inserted) item in the queue, or nil if the queue is empty.
size_t
occurrencesOf(yourTester t, const void* d) const;
Returns the number of items in the queue for which the user-provided function pointed to
by t finds a match with d.
size_t
occurrencesOfReference(const type* e) const;
Returns the number of items in the queue with the address e.