89 queueArray(
std::move(rhs.queueArray))
100 this->queueArray = rhs;
120 this->queueArray = std::move(rhs.queueArray);
130 return this->queueArray[index];
170 this->queueArray.EraseIndex(i);
180 this->queueArray.Clear();
190 this->queueArray.Reserve(num);
200 return this->queueArray.Size();
210 return this->queueArray.IsEmpty();
220 this->queueArray.Append(e);
230 TYPE e = this->queueArray.Front();
231 this->queueArray.EraseIndex(0);
242 return this->queueArray.Front();
Nebula's dynamic array class.
Definition array.h:60
Definition arrayqueue.h:21
void Reserve(SizeT num)
increase capacity to fit N more elements into the queue
Definition arrayqueue.h:188
bool IsEmpty() const
return true if queue is empty
Definition arrayqueue.h:208
void EraseIndex(const IndexT i)
erase element at index
bool operator!=(const ArrayQueue< TYPE > &rhs) const
inequality operator
Definition arrayqueue.h:148
ArrayQueue()
constructor
Definition arrayqueue.h:70
void Clear()
remove all elements from the queue
Definition arrayqueue.h:178
void Enqueue(const TYPE &e)
add element to the back of the queue
Definition arrayqueue.h:218
TYPE & Peek() const
access to element at front of queue without removing it
Definition arrayqueue.h:240
SizeT Size() const
returns number of elements in the queue
Definition arrayqueue.h:198
ArrayQueue(const Array< TYPE > &rhs)
conversion constructor for array
Array< TYPE > queueArray
Definition arrayqueue.h:63
TYPE Dequeue()
remove the element from the front of the queue
Definition arrayqueue.h:228
TYPE & operator[](IndexT index) const
access element by index, 0 is the frontmost element (next to be dequeued)
Definition arrayqueue.h:128
bool Contains(const TYPE &e) const
return true if queue contains element
Definition arrayqueue.h:158
void operator=(const ArrayQueue< TYPE > &rhs)
assignment operator
Definition arrayqueue.h:108
bool operator==(const ArrayQueue< TYPE > &rhs) const
equality operator
Definition arrayqueue.h:138
A pinned array is an array which manages its own virtual memory.
Definition String.cs:6
static const int InvalidIndex
Definition types.h:54
int SizeT
Definition types.h:49
int IndexT
Definition types.h:48