|
Jlm
|
#include <Worklist.hpp>

Public Member Functions | |
| 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 |
| virtual bool | HasMoreWorkItems () const noexcept=0 |
| virtual T | PopWorkItem ()=0 |
| virtual void | PushWorkItem (T item)=0 |
Class for managing a set of work items, that are waiting to be visited by an algorithm. The implementation decides in what order remaining work items should be processed.
| T | the type of the work items. |
Definition at line 27 of file Worklist.hpp.
|
virtualdefault |
|
default |
|
delete |
|
default |
|
pure virtualnoexcept |
Implemented in jlm::util::Workset< T >, jlm::util::TwoPhaseLrfWorklist< T >, jlm::util::LrfWorklist< T >, jlm::util::FifoWorklist< T >, and jlm::util::LifoWorklist< T >.
|
delete |
|
default |
|
pure virtual |
Removes one work item from the worklist. Requires there to be at least one work item left.
Implemented in jlm::util::Workset< T >, jlm::util::TwoPhaseLrfWorklist< T >, jlm::util::LrfWorklist< T >, jlm::util::FifoWorklist< T >, and jlm::util::LifoWorklist< T >.
|
pure virtual |
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. |
Implemented in jlm::util::Workset< T >, jlm::util::TwoPhaseLrfWorklist< T >, jlm::util::LrfWorklist< T >, jlm::util::FifoWorklist< T >, and jlm::util::LifoWorklist< T >.