PPL
1.2
|
A simple kind of embedded list (i.e., a doubly linked objects where the links are embedded in the objects themselves). More...
#include <EList_defs.hh>
Public Types | |
typedef EList_Iterator< const T > | const_iterator |
A const iterator to traverse the list. More... | |
typedef EList_Iterator< T > | iterator |
A non-const iterator to traverse the list. More... | |
Public Member Functions | |
EList () | |
Constructs an empty list. More... | |
~EList () | |
Destructs the list and all the elements in it. More... | |
void | push_front (T &obj) |
Pushes obj to the front of the list. More... | |
void | push_back (T &obj) |
Pushes obj to the back of the list. More... | |
iterator | insert (iterator position, T &obj) |
Inserts obj just before position and returns an iterator that points to the inserted object. More... | |
iterator | erase (iterator position) |
Removes the element pointed to by position , returning an iterator pointing to the next element, if any, or end(), otherwise. More... | |
bool | empty () const |
Returns true if and only if the list is empty. More... | |
iterator | begin () |
Returns an iterator pointing to the beginning of the list. More... | |
iterator | end () |
Returns an iterator pointing one past the last element in the list. More... | |
const_iterator | begin () const |
Returns a const iterator pointing to the beginning of the list. More... | |
const_iterator | end () const |
Returns a const iterator pointing one past the last element in the list. More... | |
bool | OK () const |
Checks if all the invariants are satisfied. More... | |
Additional Inherited Members | |
![]() | |
Doubly_Linked_Object () | |
Default constructor. More... | |
Doubly_Linked_Object (Doubly_Linked_Object *f, Doubly_Linked_Object *b) | |
Creates a chain element with forward link f and backward link b . More... | |
void | insert_before (Doubly_Linked_Object &y) |
Inserts y before *this . More... | |
void | insert_after (Doubly_Linked_Object &y) |
Inserts y after *this . More... | |
Doubly_Linked_Object * | erase () |
Erases *this from the chain and returns a pointer to the next element. More... | |
~Doubly_Linked_Object () | |
Erases *this from the chain. More... | |
A simple kind of embedded list (i.e., a doubly linked objects where the links are embedded in the objects themselves).
Definition at line 36 of file EList_defs.hh.
typedef EList_Iterator<const T> Parma_Polyhedra_Library::Implementation::EList< T >::const_iterator |
A const iterator to traverse the list.
Definition at line 40 of file EList_defs.hh.
typedef EList_Iterator<T> Parma_Polyhedra_Library::Implementation::EList< T >::iterator |
A non-const iterator to traverse the list.
Definition at line 43 of file EList_defs.hh.
|
inline |
Constructs an empty list.
Definition at line 35 of file EList_inlines.hh.
|
inline |
Destructs the list and all the elements in it.
Definition at line 97 of file EList_inlines.hh.
|
inline |
Returns an iterator pointing to the beginning of the list.
Definition at line 60 of file EList_inlines.hh.
|
inline |
Returns a const iterator pointing to the beginning of the list.
Definition at line 72 of file EList_inlines.hh.
|
inline |
Returns true
if and only if the list is empty.
Definition at line 84 of file EList_inlines.hh.
|
inline |
Returns an iterator pointing one past the last element in the list.
Definition at line 66 of file EList_inlines.hh.
|
inline |
Returns a const iterator pointing one past the last element in the list.
Definition at line 78 of file EList_inlines.hh.
|
inline |
Removes the element pointed to by position
, returning an iterator pointing to the next element, if any, or end(), otherwise.
Definition at line 90 of file EList_inlines.hh.
References Parma_Polyhedra_Library::Implementation::BD_Shapes::empty.
|
inline |
Inserts obj
just before position
and returns an iterator that points to the inserted object.
Definition at line 53 of file EList_inlines.hh.
|
inline |
Checks if all the invariants are satisfied.
Definition at line 107 of file EList_inlines.hh.
|
inline |
Pushes obj
to the back of the list.
Definition at line 47 of file EList_inlines.hh.
|
inline |
Pushes obj
to the front of the list.
Definition at line 41 of file EList_inlines.hh.