Zero  0.1.0
Classes | Public Member Functions | Private Attributes | List of all members
holder_list Class Reference

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_tunlink (iterator const &it)
 Remove whatever is the current item for the given iterator. More...
 

Private Attributes

latch_holder_t *& _first
 

Detailed Description

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.

Constructor & Destructor Documentation

§ holder_list()

holder_list::holder_list ( latch_holder_t *&  first)
inline

Member Function Documentation

§ begin()

iterator holder_list::begin ( )
inline

Dereferencing this iterator brings us to the first item in the list.

§ end()

iterator holder_list::end ( )
inline

Dereferencing this iterator brings us past the last item in any list.

§ push_front()

void holder_list::push_front ( latch_holder_t h)
inline

Insert h at the front of this list.

§ unlink()

latch_holder_t* holder_list::unlink ( iterator const &  it)
inline

Remove whatever is the current item for the given iterator.

Member Data Documentation

§ _first

latch_holder_t*& holder_list::_first
private

The documentation for this class was generated from the following file: