Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

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. More...
 
 ListElement (ListPure< E > *list, const E &x, ListElement< E > *next, ListElement< E > *prev)
 Constructs a ListElement. More...
 
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. More...
 

Private Attributes

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

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 50 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 66 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 73 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 76 of file List.h.

Friends And Related Function Documentation

◆ List< E >

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

Definition at line 52 of file List.h.

◆ ListIteratorBase< E, false, false >

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

Definition at line 56 of file List.h.

◆ ListIteratorBase< E, false, true >

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

Definition at line 54 of file List.h.

◆ ListIteratorBase< E, true, false >

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

Definition at line 55 of file List.h.

◆ ListIteratorBase< E, true, true >

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

Definition at line 53 of file List.h.

◆ ListPure< E >

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

Definition at line 51 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 58 of file List.h.

◆ m_prev

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

Pointer to predecessor element.

Definition at line 59 of file List.h.

◆ m_x

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

Stores the content.

Definition at line 60 of file List.h.


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