#include <managed_list.h>
Public Member Functions | |
T & | getElem () |
get the list element that this handle points to fails/asserts if this is an empty handle | |
const T & | getElem () const |
Handle () | |
Construct an empty handle. | |
Handle & | operator= (const Handle &rhs) |
bool | operator== (const Handle &rhs) const |
Checks if two handles point to the same list elem. | |
void | reset () |
stop tracking the list element with this handle, even though the Handle hasn't gone out of scope | |
Private Member Functions | |
Handle (const boost::shared_ptr< void > &handle_tracker, iterator it) | |
Private Attributes | |
boost::shared_ptr< void > | handle_tracker_ |
iterator | it_ |
bool | valid_ |
Friends | |
class | iterator |
class | ManagedList |
Definition at line 121 of file managed_list.h.
actionlib::ManagedList< T >::Handle::Handle | ( | ) | [inline] |
Construct an empty handle.
Definition at line 127 of file managed_list.h.
actionlib::ManagedList< T >::Handle::Handle | ( | const boost::shared_ptr< void > & | handle_tracker, |
iterator | it | ||
) | [inline, private] |
Definition at line 200 of file managed_list.h.
T& actionlib::ManagedList< T >::Handle::getElem | ( | ) | [inline] |
get the list element that this handle points to fails/asserts if this is an empty handle
Definition at line 160 of file managed_list.h.
const T& actionlib::ManagedList< T >::Handle::getElem | ( | ) | const [inline] |
Definition at line 169 of file managed_list.h.
Handle& actionlib::ManagedList< T >::Handle::operator= | ( | const Handle & | rhs | ) | [inline] |
Definition at line 130 of file managed_list.h.
bool actionlib::ManagedList< T >::Handle::operator== | ( | const Handle & | rhs | ) | const [inline] |
Checks if two handles point to the same list elem.
Definition at line 181 of file managed_list.h.
void actionlib::ManagedList< T >::Handle::reset | ( | ) | [inline] |
stop tracking the list element with this handle, even though the Handle hasn't gone out of scope
Definition at line 144 of file managed_list.h.
friend class iterator [friend] |
Definition at line 197 of file managed_list.h.
friend class ManagedList [friend] |
Definition at line 194 of file managed_list.h.
boost::shared_ptr<void> actionlib::ManagedList< T >::Handle::handle_tracker_ [private] |
Definition at line 205 of file managed_list.h.
iterator actionlib::ManagedList< T >::Handle::it_ [private] |
Definition at line 204 of file managed_list.h.
bool actionlib::ManagedList< T >::Handle::valid_ [private] |
Definition at line 206 of file managed_list.h.