#include <lock_list.h>
A list which inherits from mutex to provide synchronization
capabilities.
Guarantees:
Inheritance diagram for lock_list< T >:
Public Types | |
typedef list_type::iterator | iterator |
typedef list_type::const_iterator | const_iterator |
typedef list_type::size_type | size_type |
typedef T | value_type |
Public Member Functions | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
void | push_front (const T &t) |
void | push_back (const T &t) |
void | pop_front () |
void | pop_back () |
size_type | size () const |
void | clear () |
size_type | erase (const value_type &k) |
iterator | erase (iterator pos) |
iterator | find (const value_type &k) |
Private Types | |
typedef std::list< T > | list_type |
Private Attributes | |
list_type | m_list |
|
A bidirectional iterator for the list. A const_iterator cannot modify an element of the list. |
|
A bidirectional iterator for the list. This iterator may be used to modify the elements of the list. |
|
The type of list used by lock_list. At the moment this is std::list |
|
A type that keeps track of the number of elements in the list. |
|
The type of the elements in the list. |
|
Gets an iterator to the first element in the list. This iterator cannot be used to modify the elements of the list.
|
|
Gets an iterator to the first element of the list.
|
|
Removes all elements from the list. |
|
Gets an iterator to the end of the list. Note that this iterator does not initially refer to a valid element, and elements that it may refer to may not be modified.
|
|
Gets an iterator to the end of the list. Note that this iterator does not initially refer to a valid element.
|
|
Erases an element of the list.
|
|
Erases elements of the list equal to the parameter. Note that this
removes all elements of the list equal to the parameter, not just
the first one.
|
|
Finds an element in the list.
|
|
Removes the element at the end of the list. |
|
Removes the element at the front of the list. |
|
Inserts an element at the end of the list.
|
|
Inserts an element at the front of the list.
|
|
Gets the size of the list.
|
|
|