|
| Queue (const KnowledgeUpdateSettings &settings=KnowledgeUpdateSettings()) |
| Default constructor. More...
|
|
| Queue (const std::string &name, KnowledgeBase &knowledge, const KnowledgeUpdateSettings &settings=KnowledgeUpdateSettings()) |
| Constructor. More...
|
|
| Queue (const std::string &name, Variables &knowledge, const KnowledgeUpdateSettings &settings=KnowledgeUpdateSettings()) |
| Constructor. More...
|
|
| Queue (const std::string &name, KnowledgeBase &knowledge, int size, const KnowledgeUpdateSettings &settings=KnowledgeUpdateSettings()) |
| Default constructor. More...
|
|
| Queue (const std::string &name, Variables &knowledge, int size, const KnowledgeUpdateSettings &settings=KnowledgeUpdateSettings()) |
| Default constructor. More...
|
|
| Queue (const Queue &rhs) |
| Copy constructor. More...
|
|
virtual | ~Queue ()=default |
| Destructor. More...
|
|
void | clear (void) |
| Clears the queue. More...
|
|
size_t | count (void) |
| Returns the number of records in the queue. More...
|
|
knowledge::KnowledgeRecord | dequeue (bool wait=true) |
| Dequeues a record from the front of the queue. More...
|
|
template<typename... Args> |
bool | emplace (Args &&...args) |
| Enqueues a new record to the end of the queue. More...
|
|
bool | enqueue (const knowledge::KnowledgeRecord &record) |
| Enqueues a record to the end of the queue. More...
|
|
std::string | get_name (void) const |
| Returns the name of the variable. More...
|
|
knowledge::KnowledgeRecord | inspect (size_t position) |
| Retrieves a record at a position in the queue. More...
|
|
bool | operator!= (const Queue &value) const |
| Checks for inequality. More...
|
|
void | operator= (const Queue &rhs) |
| Assignment operator. More...
|
|
bool | operator== (const Queue &value) const |
| Checks for equality. More...
|
|
void | resize (int size=-1) |
| Resizes the queue. More...
|
|
void | set_name (const std::string &var_name, KnowledgeBase &knowledge) |
| Sets the variable name that this refers to. More...
|
|
void | set_name (const std::string &var_name, Variables &knowledge) |
| Sets the variable name that this refers to. More...
|
|
void | set_quality (uint32_t quality, const KnowledgeReferenceSettings &settings=KnowledgeReferenceSettings(false)) |
| Sets the quality of writing to the counter variables. More...
|
|
KnowledgeUpdateSettings | set_settings (const KnowledgeUpdateSettings &settings) |
| Sets the update settings for the variable. More...
|
|
size_t | size (void) |
| Returns the maximum size of the queue. More...
|
|
This class stores thread-safe queue within the knowledge base.
The Queue allows for O(1) enqueue/dequeue time. It also allows for O(1) inspection of arbitrary elements and features asynchronous and synchronous dequeues.
Definition at line 34 of file Queue.h.