SourcePro C++ 13.0 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
A restricted interface to class RWSlistCollectables in order to implement a first in first out (FIFO) queue. More...
#include <rw/queuecol.h>
Private Member Functions | |
RWCollectable * | prepend (RWCollectable *) |
virtual void | removeAndDestroy (const RWCollectable *) |
Additional Inherited Members | |
Static Public Member Functions inherited from RWCollectable | |
static RWClassID | classID (const RWStringID &name) |
static RWClassID | classIsA () |
static bool | isAtom (RWClassID id) |
static RWspace | nilStoreSize () |
Static Public Attributes inherited from RWCollection | |
static size_t | DEFAULT_CAPACITY |
Related Functions inherited from RWCollection | |
typedef void(* | RWapplyCollectable )(RWCollectable *, void *) |
typedef bool(* | RWtestCollectable )(const RWCollectable *, const void *) |
typedef bool(* | RWtestCollectablePair )(const RWCollectable *, const RWCollectable *, const void *) |
Class RWSlistCollectablesQueue represents a restricted interface to class RWSlistCollectables to implement a first in first out (FIFO) queue. A queue is a sequential list for which all insertions are made at one end (the "tail"), and all removals are made at the other end (the "head"). Hence, the ordering is determined externally by the ordering of the insertions. Duplicates are allowed.
An object stored by RWSlistCollectablesQueue must inherit from abstract base class RWCollectable. You must use the virtual function isEqual() (see class RWCollectable) to find a match between a target and an item in the queue.
This class corresponds to the Smalltalk class Queue.
Polymorphic
RWSlistCollectablesQueue::RWSlistCollectablesQueue | ( | ) |
Constructs an empty queue.
|
inline |
Constructs a queue with single item a.
|
inline |
Makes a shallow copy of queue.
|
inline |
Move constructor. The constructed RWSlistCollectablesQueue takes ownership of the data owned by queue.
|
virtual |
Returns __RWSLISTCOLLECTABLESQUEUE
, i.e. a class identifier, that identifies this object's class.
Reimplemented from RWSlistCollectables.
|
virtual |
Returns true
if the collectable object "matches" the object at address t. The default definition is:
i.e., both objects have the same address (a test for identity). The definition may be redefined in any consistent way.
Reimplemented from RWSlistCollectables.
|
virtual |
Allocates a new object off the heap of the same type as self and returns a pointer to it. You are responsible for deleting the object when done with it.
Reimplemented from RWSlistCollectables.
|
inline |
Move assignment. Self takes ownership of the data owned by rhs.
|
inline |
Assignment operator. Makes a shallow copy of rhs.
|
inlineprivatevirtual |
Adds c to the beginning of the collection and returns it. Returns rwnil if the insertion was unsuccessful.
Reimplemented from RWSlistCollectables.
|
inlinevirtual |
Calls get(). The argument is ignored.
Reimplemented from RWSlistCollectables.
|
inlineprivatevirtual |
Removes and deletes the first item in the collection which "matches" the object pointed to by target.
Reimplemented from RWCollection.
Copyright © 2014 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.