|
Jlm
|
#include <Worklist.hpp>


Public Member Functions | |
| ~FifoWorklist () override=default | |
| FifoWorklist ()=default | |
| bool | HasMoreWorkItems () const noexcept override |
| T | PopWorkItem () override |
| void | PushWorkItem (T item) override |
Public Member Functions inherited from jlm::util::Worklist< T > | |
| virtual | ~Worklist ()=default |
| Worklist ()=default | |
| Worklist (const Worklist &other)=delete | |
| Worklist (Worklist &&other)=default | |
| Worklist & | operator= (const Worklist &other)=delete |
| Worklist & | operator= (Worklist &&other)=default |
Private Attributes | |
| util::HashSet< T > | OnList_ |
| std::queue< T > | WorkItems_ |
Worklist implementation using a queue. Pushing a work item that is already in the queue is a no-op.
| T | the type of the work items. |
Definition at line 119 of file Worklist.hpp.
|
overridedefault |
|
default |
|
inlineoverridevirtualnoexcept |
Implements jlm::util::Worklist< T >.
Definition at line 127 of file Worklist.hpp.
|
inlineoverridevirtual |
Removes one work item from the worklist. Requires there to be at least one work item left.
Implements jlm::util::Worklist< T >.
Definition at line 133 of file Worklist.hpp.
|
inlineoverridevirtual |
Adds a work item to the worklist. If the item is already present, the item is not added again, but its position may be changed.
| item | the work item to be added. |
Implements jlm::util::Worklist< T >.
Definition at line 143 of file Worklist.hpp.
|
private |
Definition at line 151 of file Worklist.hpp.
|
private |
Definition at line 154 of file Worklist.hpp.