Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::ListElement< E > Class Template Reference

Structure for elements of doubly linked lists. More...

#include <ogdf/basic/List.h>

Private Member Functions

 ListElement (ListPure< E > *list, const E &x)
 Constructs a ListElement.
 
 ListElement (ListPure< E > *list, const E &x, ListElement< E > *next, ListElement< E > *prev)
 Constructs a ListElement.
 
template<class... Args>
 ListElement (ListPure< E > *list, ListElement< E > *next, ListElement< E > *prev, Args &&... args)
 Constructs a ListElement with given arguments args for constructor of element type.
 

Private Attributes

ListElement< E > * m_next
 Pointer to successor element.
 
ListElement< E > * m_prev
 Pointer to predecessor element.
 
m_x
 Stores the content.
 

Friends

class List< E >
 
class ListIteratorBase< E, false, false >
 
class ListIteratorBase< E, false, true >
 
class ListIteratorBase< E, true, false >
 
class ListIteratorBase< E, true, true >
 
class ListPure< E >
 

Detailed Description

template<class E>
class ogdf::ListElement< E >

Structure for elements of doubly linked lists.

Definition at line 58 of file List.h.

Constructor & Destructor Documentation

◆ ListElement() [1/3]

template<class E >
ogdf::ListElement< E >::ListElement ( ListPure< E > *  list,
const E &  x,
ListElement< E > *  next,
ListElement< E > *  prev 
)
inlineprivate

Constructs a ListElement.

Definition at line 74 of file List.h.

◆ ListElement() [2/3]

template<class E >
ogdf::ListElement< E >::ListElement ( ListPure< E > *  list,
const E &  x 
)
inlineprivate

Constructs a ListElement.

Definition at line 82 of file List.h.

◆ ListElement() [3/3]

template<class E >
template<class... Args>
ogdf::ListElement< E >::ListElement ( ListPure< E > *  list,
ListElement< E > *  next,
ListElement< E > *  prev,
Args &&...  args 
)
inlineprivate

Constructs a ListElement with given arguments args for constructor of element type.

Definition at line 86 of file List.h.

Friends And Related Symbol Documentation

◆ List< E >

template<class E >
friend class List< E >
friend

Definition at line 1807 of file List.h.

◆ ListIteratorBase< E, false, false >

template<class E >
friend class ListIteratorBase< E, false, false >
friend

Definition at line 1807 of file List.h.

◆ ListIteratorBase< E, false, true >

template<class E >
friend class ListIteratorBase< E, false, true >
friend

Definition at line 1807 of file List.h.

◆ ListIteratorBase< E, true, false >

template<class E >
friend class ListIteratorBase< E, true, false >
friend

Definition at line 1807 of file List.h.

◆ ListIteratorBase< E, true, true >

template<class E >
friend class ListIteratorBase< E, true, true >
friend

Definition at line 1807 of file List.h.

◆ ListPure< E >

template<class E >
friend class ListPure< E >
friend

Definition at line 1807 of file List.h.

Member Data Documentation

◆ m_next

template<class E >
ListElement<E>* ogdf::ListElement< E >::m_next
private

Pointer to successor element.

Definition at line 66 of file List.h.

◆ m_prev

template<class E >
ListElement<E>* ogdf::ListElement< E >::m_prev
private

Pointer to predecessor element.

Definition at line 67 of file List.h.

◆ m_x

template<class E >
E ogdf::ListElement< E >::m_x
private

Stores the content.

Definition at line 68 of file List.h.


The documentation for this class was generated from the following file: