Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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

ListPure< E > * m_list
 List object that the element belongs to. More...
 
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 68 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 84 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 92 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 96 of file List.h.

Friends And Related Function Documentation

◆ List< E >

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

Definition at line 70 of file List.h.

◆ ListIteratorBase< E, false, false >

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

Definition at line 74 of file List.h.

◆ ListIteratorBase< E, false, true >

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

Definition at line 72 of file List.h.

◆ ListIteratorBase< E, true, false >

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

Definition at line 73 of file List.h.

◆ ListIteratorBase< E, true, true >

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

Definition at line 71 of file List.h.

◆ ListPure< E >

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

Definition at line 69 of file List.h.

Member Data Documentation

◆ m_list

template<class E >
ListPure<E>* ogdf::ListElement< E >::m_list
private

List object that the element belongs to.

Definition at line 80 of file List.h.

◆ m_next

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

Pointer to successor element.

Definition at line 76 of file List.h.

◆ m_prev

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

Pointer to predecessor element.

Definition at line 77 of file List.h.

◆ m_x

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

Stores the content.

Definition at line 78 of file List.h.


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