Lists of graph objects (like nodes, edges, etc.).
More...
#include <ogdf/basic/Graph_d.h>
List of all members.
Public Member Functions |
| | GraphList () |
| | Constructs an empty list.
|
| | ~GraphList () |
| T * | begin () const |
| | Returns the first element in the list.
|
| void | clear () |
| | Removes all elements from the list and deletes them.
|
| bool | consistencyCheck () |
| | Checks consistency of graph list; returns true if ok.
|
| void | del (T *pX) |
| | Removes element pX from the list and deletes it.
|
| void | delPure (T *pX) |
| | Only removes element pX from the list; does not delete it.
|
| bool | empty () |
| | Returns true iff the list is empty.
|
| void | insertAfter (T *pX, T *pY) |
| | Inserts element pX after element pY.
|
| void | insertBefore (T *pX, T *pY) |
| | Inserts element pX before element pY.
|
| void | move (T *pX, GraphList< T > &L, T *pY, Direction dir) |
| | Moves element pX to list L and inserts it before or after pY.
|
| void | move (T *pX, GraphList< T > &L) |
| | Moves element pX to list L and inserts it at the end.
|
| void | moveAfter (T *pX, T *pY) |
| | Moves element pX from its current position to a position after pY.
|
| void | moveBefore (T *pX, T *pY) |
| | Moves element pX from its current position to a position before pY.
|
| void | pushBack (T *pX) |
| | Adds element pX at the end of the list.
|
| T * | rbegin () const |
| | Returns the last element in the list.
|
| void | reverse () |
| | Reverses the order of the list elements.
|
| template<class T_LIST > |
| void | sort (const T_LIST &newOrder) |
| | Sorts all elements according to newOrder.
|
| void | swap (T *pX, T *pY) |
| | Exchanges the positions of pX and pY in the list.
|
Detailed Description
template<class T>
class ogdf::GraphList< T >
Lists of graph objects (like nodes, edges, etc.).
The template type T must be a class derived from GraphElement.
Definition at line 257 of file Graph_d.h.
Constructor & Destructor Documentation
Constructs an empty list.
Definition at line 260 of file Graph_d.h.
Member Function Documentation
Returns the first element in the list.
Definition at line 268 of file Graph_d.h.
Removes all elements from the list and deletes them.
Definition at line 329 of file Graph_d.h.
Removes element pX from the list and deletes it.
Definition at line 318 of file Graph_d.h.
Only removes element pX from the list; does not delete it.
Definition at line 324 of file Graph_d.h.
Returns true iff the list is empty.
Definition at line 273 of file Graph_d.h.
Inserts element pX after element pY.
Definition at line 281 of file Graph_d.h.
Inserts element pX before element pY.
Definition at line 286 of file Graph_d.h.
Moves element pX to list L and inserts it before or after pY.
Definition at line 291 of file Graph_d.h.
Moves element pX to list L and inserts it at the end.
Definition at line 300 of file Graph_d.h.
Moves element pX from its current position to a position after pY.
Definition at line 306 of file Graph_d.h.
Moves element pX from its current position to a position before pY.
Definition at line 312 of file Graph_d.h.
Adds element pX at the end of the list.
Definition at line 276 of file Graph_d.h.
Returns the last element in the list.
Definition at line 270 of file Graph_d.h.
template<class T>
template<class T_LIST >
Sorts all elements according to newOrder.
Definition at line 338 of file Graph_d.h.
Exchanges the positions of pX and pY in the list.
Definition at line 349 of file Graph_d.h.
The documentation for this class was generated from the following file: