LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::Queue< T > Class Template Reference

Simple queue class built on a std::vector.

#include <nrg_queue.h>

Public Member Functions

 Queue (size_t sz)
 Construct a Queue with initial size sz.
 
void push (const T &t)
 Push t onto the back of the queue.
 
pop (void)
 Remove the head of the queue and return it, don't call this if the queue is empty or all hell will break loose.
 
void clear ()
 Clears the queue.
 
size_t size ()
 Returns the size of the queue.
 
bool empty ()
 Returns true if the queue is empty.
 

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