26template<
class Thing,
int max_size>
40 INLINE
const Thing &
front()
const;
51 INLINE
const Thing &
back()
const;
58 Thing _array[max_size+1];
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void clear()
Removes all items from the queue.
const Thing & back() const
Returns a reference to the last item in the queue.
int size() const
Returns the number of items currently in the buffer.
bool full() const
Returns true if the buffer is full; if this is true, push_back() will fail.
bool empty() const
Returns true if the buffer is empty.
const Thing & operator[](int n) const
Returns the nth element in the buffer.
const Thing & front() const
Returns a reference to the first item in the queue.
void pop_front()
Removes the first item from the buffer.
Thing & front()
Returns a reference to the first item in the queue.
Thing & back()
Returns a reference to the last item in the queue.
void push_back(const Thing &t)
Adds an item to the end of the buffer.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.