|
Jlm
|
#include <Worklist.hpp>


Public Member Functions | |
| ~Workset () override=default | |
| Workset ()=default | |
| bool | HasMoreWorkItems () const noexcept override |
| T | PopWorkItem () override |
| void | PushWorkItem (T item) override |
| bool | HasWorkItem (T item) const noexcept |
| void | RemoveWorkItem (T item) |
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 > | PushedItems_ |
A fake worklist that remembers which work items have been pushed, but without providing any kind of iteration interface for accessing them. Each work item must be explicitly removed by name. Used to implement the Topological worklist policy, which is not technically a worklist policy.
| T | the type of the work items. |
Definition at line 306 of file Worklist.hpp.
|
overridedefault |
|
default |
|
inlineoverridevirtualnoexcept |
Implements jlm::util::Worklist< T >.
Definition at line 314 of file Worklist.hpp.
|
inlinenoexcept |
Definition at line 332 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 320 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 326 of file Worklist.hpp.
|
inline |
Definition at line 338 of file Worklist.hpp.
|
private |
Definition at line 344 of file Worklist.hpp.