|
FE 0.13.1
Header-only C++ frontend library
|
A worklist that pushes each element at most once. More...
#include <fe/worklist.h>
Public Types | |
| using | T = typename std::remove_reference_t<Set>::value_type |
Public Member Functions | |
| void | clear () |
Constructors | |
| Worklist ()=default | |
| Worklist (Set set) | |
| Worklist (std::initializer_list< T > init) | |
push | |
| bool | push (T val) |
| template<std::ranges::input_range R> | |
| void | push (R &&r) |
Access | |
| bool | empty () const |
| size_t | size () const |
| T | pop () |
| T & | front () |
| const T & | front () const |
| T & | back () |
| const T & | back () const |
| T & | top () |
| const T & | top () const |
A worklist that pushes each element at most once.
Set remembers what has already been pushed and may be a reference to share it with the caller. Use it through the BFSWorklist/DFSWorklist aliases.
Definition at line 19 of file worklist.h.
| using fe::Worklist< Set, C >::T = typename std::remove_reference_t<Set>::value_type |
Definition at line 21 of file worklist.h.
|
default |
|
inlineexplicit |
Definition at line 27 of file worklist.h.
|
inline |
Definition at line 29 of file worklist.h.
References push().
|
inline |
Definition at line 56 of file worklist.h.
|
inline |
Definition at line 57 of file worklist.h.
|
inline |
Definition at line 62 of file worklist.h.
|
inline |
Definition at line 50 of file worklist.h.
|
inline |
Definition at line 54 of file worklist.h.
|
inline |
Definition at line 55 of file worklist.h.
|
inline |
Definition at line 52 of file worklist.h.
References fe::pop().
|
inline |
Definition at line 42 of file worklist.h.
References push().
|
inline |
Definition at line 34 of file worklist.h.
Referenced by push(), and Worklist().
|
inline |
Definition at line 51 of file worklist.h.
|
inline |
Definition at line 58 of file worklist.h.
|
inline |
Definition at line 59 of file worklist.h.