DABC (Data Acquisition Backbone Core)
2.9.9
|
Template of circular queue. More...
#include <dabc/Queue.h>
Data Structures | |
class | Iterator |
Public Member Functions | |
void | Allocate (unsigned capacity) |
T & | Back () const |
Iterator | begin () |
unsigned | Capacity () const |
virtual void | CopyTo (T *tgt) |
Method can be used to copy content of the queue into externally allocated array. More... | |
bool | Empty () const |
Iterator | end () |
bool | Expand (unsigned newcapacity=0) |
T & | Front () const |
bool | Full () const |
void | Init (unsigned capacity) |
T & | Item (unsigned indx) const |
T * | ItemPtr (unsigned indx) const |
bool | MakePlaceForNext () |
T | Pop () |
void | PopOnly () |
void | Push (T val) |
T * | PushEmpty () |
void | PushRef (const T &val) |
Queue ()=default | |
Queue (unsigned capacity) | |
bool | Remove (T value) |
bool | RemoveItem (unsigned indx) |
void | Reset () |
unsigned | Size () const |
virtual | ~Queue () |
Protected Member Functions | |
T * | QueueItem (unsigned n) |
Protected Attributes | |
T * | fBorder {nullptr} |
unsigned | fCapacity {0} |
T * | fHead {nullptr} |
unsigned | fInitSize {0} |
original size of the queue, restored then Reset() method is called More... | |
T * | fQueue {nullptr} |
unsigned | fSize {0} |
T * | fTail {nullptr} |
Friends | |
class | Queue< T, canexpand >::Iterator |
Template of circular queue.
|
default |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inline |
|
inline |
|
inlinevirtual |
Method can be used to copy content of the queue into externally allocated array.
Reimplemented in dabc::RecordsQueue< T, canexpand >.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |