|
Zero
0.1.0
|
The list-handling class for latch_holder_t instances. More...
Classes | |
| struct | iterator |
| Iterator over a list of latch_holder_t structures. More... | |
Public Member Functions | |
| holder_list (latch_holder_t *&first) | |
| iterator | begin () |
| Dereferencing this iterator brings us to the first item in the list. More... | |
| iterator | end () |
| Dereferencing this iterator brings us past the last item in any list. More... | |
| void | push_front (latch_holder_t *h) |
| Insert h at the front of this list. More... | |
| latch_holder_t * | unlink (iterator const &it) |
| Remove whatever is the current item for the given iterator. More... | |
Private Attributes | |
| latch_holder_t *& | _first |
The list-handling class for latch_holder_t instances.
Really, all this does is provide an iterator and a means to insert (push_front) and remove (unlink) these things.
The list contents are always instances of latch_holder_t, which have an internal link for creating the list.
|
inline |
|
inline |
Dereferencing this iterator brings us to the first item in the list.
|
inline |
Dereferencing this iterator brings us past the last item in any list.
|
inline |
Insert h at the front of this list.
|
inline |
Remove whatever is the current item for the given iterator.
|
private |
1.8.12