LQueue is a PowerPlant class that is used for implementing full linked list behavior for a list of LLink objects.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
Every element in LQueue is an LLink object. The methods also work on LLink objects. LQueue implements a first-in, first-out (FIFO) queue. You add elements to the end of the list, and you may only get items from the head of the list.
Source files:
See also:
Purpose:
The constructor creates the object.
Access :
Prototype:
LQueue();Parameters:
Purpose:
The destructor destroys the LQueue object.
Access :
Prototype:
virtual ~LQueue();
Purpose:
Execute a user-supplied function for each element in the queue.
Access :
Prototype:
virtual void DoForEach(LQueueIterator proc,
void* arg); The parameters for this method are:
Return:
Purpose:
Returns the number of elements in the queue.
Access :
Prototype:
virtual UInt32 GetSize() const;Parameters:
Return:
The number of items in the queue.
Purpose:
Indicates if the queue not contain any elements.
Access :
Prototype:
virtual Boolean IsEmpty() const;Parameters:
Return:
Return true if the queue is empty.
Purpose:
Removes and returns the first element in the queue.
Access :
Prototype:
virtual LLink* NextGet();Parameters:
Return:
A LLink pointer to the element in the queue.
Purpose:
Adds the given element to the end of the queue.
Access :
Prototype:
virtual void NextPut(LLink* inLinkP);Parameters:
A pointer to an LLink
Return:
Purpose:
Remove an arbitrary element from the queue. This function traverses the entire queue, looking for the given queue element. If the element is found, it is removed from the queue.
Access :
Prototype:
virtual Boolean Remove(LLink *inLinkP);Parameters:
A pointer to an LLink
Return:
Returns a Boolean indicating if the element was found.
Purpose:
Access :
Prototype:
LQueue& operator = (const LQueue&);Parameters:
Return:
Purpose:
Access :
Prototype:
LLink* mFirst;
Purpose:
Access :
Prototype:
LLink* mLast;
Purpose:
The size of the queue in elements.
Access :
Prototype:
UInt32 mSize;