Lists of graph objects (like nodes, edges, etc.). More...
#include <ogdf/basic/GraphList.h>
Inheritance diagram for ogdf::internal::GraphList< T >:Public Member Functions | |
| GraphList () | |
| Constructs an empty list. More... | |
| ~GraphList () | |
| Destruction: deletes all elements. More... | |
| void | clear () |
| Removes all elements from the list and deletes them. More... | |
| bool | consistencyCheck () |
| Checks consistency of graph list; returns true if ok. More... | |
| void | del (T *pX) |
Removes element pX from the list and deletes it. More... | |
| void | delPure (T *pX) |
Only removes element pX from the list; does not delete it. More... | |
| bool | empty () const |
| Returns true iff the list is empty. More... | |
| T * | head () const |
| Returns the first element in the list. More... | |
| void | insertAfter (T *pX, T *pY) |
Inserts element pX after element pY. More... | |
| void | insertBefore (T *pX, T *pY) |
Inserts element pX before element pY. More... | |
| void | move (T *pX, GraphList< T > &L, T *pY, Direction dir) |
Moves element pX to list L and inserts it before or after pY. More... | |
| void | move (T *pX, GraphList< T > &L) |
Moves element pX to list L and inserts it at the end. More... | |
| void | moveAfter (T *pX, T *pY) |
Moves element pX from its current position to a position after pY. More... | |
| void | moveBefore (T *pX, T *pY) |
Moves element pX from its current position to a position before pY. More... | |
| void | pushBack (T *pX) |
Adds element pX at the end of the list. More... | |
| void | reverse () |
| Reverses the order of the list elements. More... | |
| int | size () const |
| Returns the size of the list. More... | |
| template<class T_LIST > | |
| void | sort (const T_LIST &newOrder) |
Sorts all elements according to newOrder. More... | |
| void | swap (T *pX, T *pY) |
Exchanges the positions of pX and pY in the list. More... | |
| T * | tail () const |
| Returns the last element in the list. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ogdf::internal::GraphListBase | |
| GraphListBase () | |
| Constructs an empty list. More... | |
| ~GraphListBase () | |
| Destruction. More... | |
| bool | consistencyCheck () |
| Checks consistency of graph list. More... | |
| void | del (GraphElement *pX) |
Removes element pX from the list. More... | |
| void | insertAfter (GraphElement *pX, GraphElement *pY) |
Inserts element pX after element pY. More... | |
| void | insertBefore (GraphElement *pX, GraphElement *pY) |
Inserts element pX before element pY. More... | |
| void | pushBack (GraphElement *pX) |
Adds element pX at the end of the list. More... | |
| void | reverse () |
| Reverses the order of the list elements. More... | |
| int | size () const |
| Returns the size of the list. More... | |
| template<class LIST > | |
| void | sort (const LIST &newOrder) |
Sorts the list according to newOrder. More... | |
| void | swap (GraphElement *pX, GraphElement *pY) |
Exchanges the positions of pX and pY in the list. More... | |
Protected Attributes inherited from ogdf::internal::GraphListBase | |
| GraphElement * | m_head |
| Pointer to the first element in the list. More... | |
| int | m_size |
| The size of the list. More... | |
| GraphElement * | m_tail |
| Pointer to the last element in the list. More... | |
Lists of graph objects (like nodes, edges, etc.).
The template type T must be a class derived from GraphElement.
Definition at line 252 of file GraphList.h.
|
inline |
Constructs an empty list.
Definition at line 257 of file GraphList.h.
|
inline |
Destruction: deletes all elements.
Definition at line 260 of file GraphList.h.
|
inline |
Removes all elements from the list and deletes them.
Definition at line 331 of file GraphList.h.
|
inline |
Checks consistency of graph list; returns true if ok.
Definition at line 358 of file GraphList.h.
|
inline |
Removes element pX from the list and deletes it.
Definition at line 320 of file GraphList.h.
|
inline |
Only removes element pX from the list; does not delete it.
Definition at line 326 of file GraphList.h.
|
inline |
Returns true iff the list is empty.
Definition at line 275 of file GraphList.h.
|
inline |
Returns the first element in the list.
Definition at line 269 of file GraphList.h.
|
inline |
Inserts element pX after element pY.
Definition at line 283 of file GraphList.h.
|
inline |
Inserts element pX before element pY.
Definition at line 288 of file GraphList.h.
|
inline |
Moves element pX to list L and inserts it before or after pY.
Definition at line 293 of file GraphList.h.
|
inline |
Moves element pX to list L and inserts it at the end.
Definition at line 302 of file GraphList.h.
|
inline |
Moves element pX from its current position to a position after pY.
Definition at line 308 of file GraphList.h.
|
inline |
Moves element pX from its current position to a position before pY.
Definition at line 314 of file GraphList.h.
|
inline |
Adds element pX at the end of the list.
Definition at line 278 of file GraphList.h.
|
inline |
Reverses the order of the list elements.
Definition at line 347 of file GraphList.h.
|
inline |
Returns the size of the list.
Definition at line 266 of file GraphList.h.
|
inline |
Sorts all elements according to newOrder.
Definition at line 341 of file GraphList.h.
|
inline |
Exchanges the positions of pX and pY in the list.
Definition at line 352 of file GraphList.h.
|
inline |
Returns the last element in the list.
Definition at line 272 of file GraphList.h.