Skip to content

Queue

class Queue

@brief This class defines the interface for message queues in the Karabo distributed system

Variables

Name Description
m_counter Return the size of the queue, i.e. the number of messages it holds Return : Return the maximum allowed size of this queue Return : Set the capacity in terms of messages this queue can hold capacity : Return this queues message capacity Return : Clear this queue Check if this queue is empty, i.e. size is 0 Return : Check if this queue is full, i.e. if it has reached its maximum capacity Return : Resize the queue to a new size new_size : Return the first element in the queue Return : Add an element to the end of the queue, increases the size by one entry : Pop the first element from the queue, decreases the size by one

Variable Details

m_counter

unsigned long long m_counter

Return the size of the queue, i.e. the number of messages it holds

Return : Return the maximum allowed size of this queue

Return : Set the capacity in terms of messages this queue can hold

capacity : Return this queues message capacity

Return : Clear this queue Check if this queue is empty, i.e. size is 0

Return : Check if this queue is full, i.e. if it has reached its maximum capacity

Return : Resize the queue to a new size

new_size : Return the first element in the queue

Return : Add an element to the end of the queue, increases the size by one

entry : Pop the first element from the queue, decreases the size by one