knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <TokenQueue.h>
Public Member Functions | |
TokenQueue () | |
~TokenQueue () override | |
TokenPtr & | front () |
void | pop () |
TokenPtr | pop_front () |
bool | empty () const |
auto | size () const |
TokenQueue () | |
~TokenQueue () override | |
TokenPtr & | front () |
void | pop () |
TokenPtr | pop_front () |
bool | empty () const |
auto | size () const |
Public Member Functions inherited from knowrob::TokenStream | |
TokenStream () | |
virtual | ~TokenStream () |
TokenStream (const TokenStream &)=delete | |
virtual void | close () |
bool | isOpened () const |
TokenStream () | |
virtual | ~TokenStream () |
TokenStream (const TokenStream &)=delete | |
virtual void | close () |
bool | isOpened () const |
Protected Member Functions | |
void | push (const TokenPtr &tok) override |
void | pushToQueue (const TokenPtr &tok) |
void | push (const TokenPtr &tok) override |
void | pushToQueue (const TokenPtr &tok) |
Protected Member Functions inherited from knowrob::TokenStream | |
virtual void | push (Channel &channel, const TokenPtr &tok) |
virtual void | push (Channel &channel, const TokenPtr &tok) |
Protected Attributes | |
std::queue< TokenPtr > | queue_ |
std::condition_variable | queue_CV_ |
std::mutex | queue_mutex_ |
Protected Attributes inherited from knowrob::TokenStream | |
std::list< std::shared_ptr< Channel > > | channels_ |
std::atomic< bool > | isOpened_ |
std::mutex | channel_mutex_ |
A queue of query results.
Definition at line 18 of file TokenQueue.h.
TokenQueue::TokenQueue | ( | ) |
Definition at line 11 of file TokenQueue.cpp.
|
override |
Definition at line 14 of file TokenQueue.cpp.
knowrob::TokenQueue::TokenQueue | ( | ) |
|
override |
|
inline |
|
inline |
TokenPtr & TokenQueue::front | ( | ) |
Get the front element of this queue without removing it. This will block until the queue is non empty.
Definition at line 32 of file TokenQueue.cpp.
TokenPtr& knowrob::TokenQueue::front | ( | ) |
Get the front element of this queue without removing it. This will block until the queue is non empty.
void TokenQueue::pop | ( | ) |
Remove the front element of this queue.
Definition at line 38 of file TokenQueue.cpp.
void knowrob::TokenQueue::pop | ( | ) |
Remove the front element of this queue.
TokenPtr TokenQueue::pop_front | ( | ) |
Get front element and remove it from the queue.
Definition at line 43 of file TokenQueue.cpp.
TokenPtr knowrob::TokenQueue::pop_front | ( | ) |
Get front element and remove it from the queue.
|
overrideprotectedvirtual |
Implements knowrob::TokenStream.
Definition at line 28 of file TokenQueue.cpp.
|
overrideprotectedvirtual |
Implements knowrob::TokenStream.
|
protected |
Definition at line 20 of file TokenQueue.cpp.
|
protected |
|
inline |
|
inline |
|
protected |
Definition at line 53 of file TokenQueue.h.
|
protected |
Definition at line 54 of file TokenQueue.h.
|
protected |
Definition at line 55 of file TokenQueue.h.