You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.3 KiB
59 lines
1.3 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1993.
|
|
//
|
|
// File: queue.hxx
|
|
//
|
|
// Contents: CQueue class definition.
|
|
//
|
|
// Classes: CQueue
|
|
//
|
|
// Functions: None.
|
|
//
|
|
// History: 25-Oct-95 MarkBl Created
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __QUEUE_HXX__
|
|
#define __QUEUE_HXX__
|
|
|
|
//+---------------------------------------------------------------------------
|
|
//
|
|
// Class: CQueue
|
|
//
|
|
// Synopsis: Front-end queue class of doubly-linked list node objects.
|
|
//
|
|
// History: 25-Oct-95 MarkBl Created
|
|
//
|
|
// Notes: None.
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
class CQueue
|
|
{
|
|
public:
|
|
|
|
CQueue(void) : _cElems(0), _pdlFirst(NULL) { ; }
|
|
|
|
virtual ~CQueue() { ; }
|
|
|
|
void AddElement(CDLink * pdl);
|
|
|
|
ULONG GetCount(void) { return(_cElems); }
|
|
|
|
CDLink * GetFirstElement(void) { return(_pdlFirst); }
|
|
|
|
CDLink * RemoveElement(CDLink * pdl);
|
|
|
|
CDLink * RemoveElement(void) {
|
|
return(this->RemoveElement(_pdlFirst));
|
|
}
|
|
|
|
private:
|
|
|
|
ULONG _cElems;
|
|
CDLink * _pdlFirst;
|
|
};
|
|
|
|
#endif // __QUEUE_HXX__
|