Template Class Queue

Class Documentation

template<typename T>
class Queue

Public Functions

inline int getNumberOfEntriesInQueue()

get number of entries in queue

See also

isQueueEmpty()

Returns:

Number of entries in queue

inline bool isQueueEmpty()
inline bool waitForIncomingObject(int timeOutInMs, const std::vector<std::string> &datagram_keywords)
inline T pop(const std::vector<std::string> &datagram_keywords)
inline void push(const T &item)

Protected Functions

inline bool findFirstByKeyword(const std::vector<std::string> &keywords, typename std::list<T>::iterator &iter)

Protected Attributes

std::list<T> queue_
std::mutex mutex_
std::condition_variable cond_