C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Queue of objects without destructors. More...
#include <templ_s_queue.h>
Public Member Functions | |
SQueue (size_t capacity=0) | |
Constructor. | |
virtual | ~SQueue () |
Destructor. | |
size_t | Capacity () const |
Get the size of the allocated memory. | |
Type & | Back () |
The last element of the queue. More... | |
const Type & | Back () const |
The last element of the queue. More... | |
Type & | Front () |
The first element of the queue. | |
const Type & | Front () const |
The first element of the queue. | |
bool | Empty () const |
A property of the empty set. | |
bool | IsFull () const |
An expended memory property. More... | |
Type & | First () const |
The very first one outgoing from the queue (it works correctly only for nonempty queue). | |
void | Push (const Type &obj) |
Add to the queue and increase the buffer of the allocated memory if it is necessary. More... | |
void | Pop () |
Move out from queue. | |
void | Pop (Type &obj) |
Move out from queue. | |
bool | Reserve (size_t) |
Reserve an additional memory. | |
void | SetEmpty () |
Clear the queue. | |
size_t | Size () const |
Get the queue size. | |
Queue of objects without destructors.
Queue of objects without destructors.
Requirement for the objects are the same as in SArray<Type>.
|
inline |
The last element of the queue.
Which is the last? (it works correctly only for nonempty queue)
|
inline |
The last element of the queue.
Which is the last? (it works correctly only for nonempty queue);.
|
inline |
An expended memory property.
A expended buffer property.
In fact this property answeres whether it is possible to add in a queue an element without redeployment of the buffer.
Add to the queue and increase the buffer of the allocated memory if it is necessary.
Add to the queue and increase the buffer of the llocated memory if it is necessary.
The same as SQueue<Type>::Push, but with memory reallocation in a case when the buffer is full