Skip to content

AQueue#

A std::queue with AUI extensions.

Header:#include <AUI/Common/AQueue.h>
CMake:aui_link(my_target PUBLIC aui::core)

Public Methods#

contains#


bool AQueue::contains(const StoredType& value)
Returns
true if container contains an element, false otherwise.

isSubsetOf#


template<typename OtherContainer >
bool AQueue::isSubsetOf(const OtherContainer& c)
Returns
true if c container is a subset of this container, false otherwise.

popOrGenerate#


StoredType AQueue::popOrGenerate(Factory factory)

Pops the element and returns it. If queue is empty, the result of factory() returned. The result of factory() is never added to the queue.

Returns
result of front() if not empty; result of factory() otherwise

removeAll#


void AQueue::removeAll(const StoredType& item)
Arguments
item
element to remove.

Removes all occurrences of item.

removeFirst#


void AQueue::removeFirst(const StoredType& item)
Arguments
item
element to remove.

Removes first occurrence of item.