mCRL2
|
Private linked list that uses less memory. More...
#include <liblts_bisim_gj.h>
Public Types | |
typedef linked_list_const_iterator< T > | const_iterator |
typedef linked_list_iterator< T > | iterator |
Public Member Functions | |
template<class... Args> | |
linked_list_node (iterator next, iterator prev, Args &&... args) | |
iterator & | next () |
const const_iterator & | next () const |
iterator & | prev () |
const const_iterator & | prev () const |
T & | content () |
operator T& () | |
operator const T & () const | |
Private Attributes | |
iterator | m_next |
iterator | m_prev |
Private linked list that uses less memory.
The linked_list type given here is almost a circular list: every element points to the next, except the last one, which contains nullptr as next pointer. The prev pointers are completely circular. This allows to find the last element of the list as well. Additionally, it simplifies walking forward through the list, as end()==nullptr. (Walking backward is slightly more difficult; to enable it, there is an additional iterator before_end().)
Definition at line 238 of file liblts_bisim_gj.h.
typedef linked_list_const_iterator<T> mcrl2::lts::detail::bisimulation_gj::linked_list_node< T >::const_iterator |
Definition at line 241 of file liblts_bisim_gj.h.
typedef linked_list_iterator<T> mcrl2::lts::detail::bisimulation_gj::linked_list_node< T >::iterator |
Definition at line 242 of file liblts_bisim_gj.h.
|
inline |
Definition at line 248 of file liblts_bisim_gj.h.
|
inline |
Definition at line 274 of file liblts_bisim_gj.h.
|
inline |
Definition at line 254 of file liblts_bisim_gj.h.
|
inline |
Definition at line 259 of file liblts_bisim_gj.h.
|
inline |
Definition at line 284 of file liblts_bisim_gj.h.
|
inline |
Definition at line 279 of file liblts_bisim_gj.h.
|
inline |
Definition at line 264 of file liblts_bisim_gj.h.
|
inline |
Definition at line 269 of file liblts_bisim_gj.h.
|
private |
Definition at line 244 of file liblts_bisim_gj.h.
|
private |
Definition at line 245 of file liblts_bisim_gj.h.