aboutsummaryrefslogtreecommitdiff
path: root/src/queue.cpp
blob: 42999fe4a3bbbb0f3f98f99865738508937a3606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "queue.h"

void Queue::enqueue( void *data )
{
	lQueueData.append( data );
}

void *Queue::dequeue()
{
	void *dat = lQueueData[0];
	if( dat != NULL )
	{
		lQueueData.deleteAt( 0 );
	}
	return dat;
}

bool Queue::isEmpty()
{
	return lQueueData.isEmpty();
}

void Queue::empty()
{
	lQueueData.empty();
}