ScummVM API documentation
Bagel::CQueue Class Reference
Inheritance diagram for Bagel::CQueue:
Bagel::CBofObject

Public Member Functions

 CQueue ()
 
virtual ~CQueue ()
 
void addItem (void *pObject)
 
void * removeItem ()
 
void * getQItem ()
 
void deleteItem (void *pObject)
 
void flush ()
 

Protected Attributes

CLList_pQueueList = nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from Bagel::CBofObject
static bool isValidObject (const CBofObject *pObject)
 

Constructor & Destructor Documentation

◆ CQueue()

Bagel::CQueue::CQueue ( )

Default constructor

◆ ~CQueue()

virtual Bagel::CQueue::~CQueue ( )
virtual

Destructor

Member Function Documentation

◆ addItem()

void Bagel::CQueue::addItem ( void *  pObject)

Pushes object onto stack

Parameters
pObjectPointer to object to be pushed

◆ removeItem()

void* Bagel::CQueue::removeItem ( )

Removes 1 object off stack

Returns
Pointer to top object on stack

◆ getQItem()

void* Bagel::CQueue::getQItem ( )

Retrieves the 1st item (FIFO order) without removing it.

Returns
1st item in Queue (or nullptr is Queue is empty)

◆ deleteItem()

void Bagel::CQueue::deleteItem ( void *  pObject)

Deletes specified item from the QUEUE (Illegally)

Parameters
pObjectObject to remove

◆ flush()

void Bagel::CQueue::flush ( )

Removes all items from the queue


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