Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::EList< L, E, numElem, first, last, next, prev > Class Template Reference

The embedded list template. More...

#include <ogdf/basic/EList.h>

Public Types

using iterator = EListIterator< E, prev, next >
 The iterator typdef for elements of type E and prev, next pointer. More...
 

Public Member Functions

 EList (L *pList)
 Constructor. More...
 
E * back () const
 
iterator begin () const
 
bool empty () const
 
iterator end () const
 
E * front () const
 
void init ()
 
iterator insertAfter (E *elem, E *pPrev)
 
iterator insertAfter (E *elem, const iterator &it)
 
iterator insertBefore (E *elem, E *pNext)
 
iterator insertBefore (E *elem, const iterator &it)
 
void operator<< (E *elem)
 
void popBack ()
 
void popFront ()
 
iterator pushBack (E *elem)
 
iterator pushFront (E *elem)
 
iterator rbegin () const
 
iterator remove (E *elem)
 
iterator remove (const iterator &it)
 
iterator rend () const
 
int size () const
 

Static Public Member Functions

template<typename L_other , E *L_other::* other_first, E *L_other::* other_last, int L_other::* other_numElem>
static void appendFrom (L *pList, L_other *pListOther)
 
static E * back (const L *pList)
 Returns a pointer to the last element. More...
 
static iterator begin (const L *pList)
 Returns an iterator pointing at the first element of pList. More...
 
static bool empty (const L *pList)
 Returns true if /a pList is empty. More...
 
static iterator end (const L *pList)
 Returns an iterator pointing at nullptr. More...
 
template<typename Func >
static void forall (const L *pList, const Func &func)
 
template<typename A1 >
static void forall_call (const L *pList, void(E::*func)(A1), const A1 &a1)
 
static E * front (const L *pList)
 Returns a pointer to the first element. More...
 
static void init (L *pList)
 Initializes pList as an empty embedded list. More...
 
static iterator insertAfter (L *pList, E *elem, E *pPrev)
 Inserts elem into pList before pPrev. More...
 
static iterator insertAfter (L *pList, E *elem, const iterator &itPrev)
 Inserts elem into pList after position itPrev. More...
 
static iterator insertBefore (L *pList, E *elem, E *pNext)
 Inserts elem into pList before pNext. More...
 
static iterator insertBefore (L *pList, E *elem, const iterator &itNext)
 Inserts elem into pList before position itNext. More...
 
static void popBack (L *pList)
 Removes the last element of pList. More...
 
static void popFront (L *pList)
 Removes the first element of pList. More...
 
static iterator pushBack (L *pList, E *elem)
 Appends the element elem to the end of pList. More...
 
static iterator pushFront (L *pList, E *elem)
 Adds element elem at the begin of the list. More...
 
static iterator rbegin (const L *pList)
 Returns a reverse iterator pointing at the last element of pList. More...
 
static iterator remove (L *pList, E *elem)
 Removes elem from pList. More...
 
static iterator remove (L *pList, const iterator &it)
 Removes the element it is pointing at from pList. More...
 
static iterator rend (const L *pList)
 Returns a reverse iterator pointing at nullptr. More...
 
static int size (const L *pList)
 Returns the number of elements in this embedded list by reading the numElem var. More...
 

Private Attributes

L * m_pList
 

Detailed Description

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
class ogdf::EList< L, E, numElem, first, last, next, prev >

The embedded list template.

Definition at line 93 of file EList.h.

Member Typedef Documentation

◆ iterator

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
using ogdf::EList< L, E, numElem, first, last, next, prev >::iterator = EListIterator<E, prev, next>

The iterator typdef for elements of type E and prev, next pointer.

Definition at line 235 of file EList.h.

Constructor & Destructor Documentation

◆ EList()

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
ogdf::EList< L, E, numElem, first, last, next, prev >::EList ( L *  pList)
inline

Constructor.

Definition at line 453 of file EList.h.

Member Function Documentation

◆ appendFrom()

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
template<typename L_other , E *L_other::* other_first, E *L_other::* other_last, int L_other::* other_numElem>
static void ogdf::EList< L, E, numElem, first, last, next, prev >::appendFrom ( L *  pList,
L_other *  pListOther 
)
inlinestatic

Definition at line 395 of file EList.h.

◆ back() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static E* ogdf::EList< L, E, numElem, first, last, next, prev >::back ( const L *  pList)
inlinestatic

Returns a pointer to the last element.

Definition at line 255 of file EList.h.

◆ back() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
E* ogdf::EList< L, E, numElem, first, last, next, prev >::back ( ) const
inline

Definition at line 461 of file EList.h.

◆ begin() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::begin ( const L *  pList)
inlinestatic

Returns an iterator pointing at the first element of pList.

Definition at line 423 of file EList.h.

◆ begin() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::begin ( ) const
inline

Definition at line 480 of file EList.h.

◆ empty() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static bool ogdf::EList< L, E, numElem, first, last, next, prev >::empty ( const L *  pList)
inlinestatic

Returns true if /a pList is empty.

Definition at line 249 of file EList.h.

◆ empty() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
bool ogdf::EList< L, E, numElem, first, last, next, prev >::empty ( ) const
inline

Definition at line 458 of file EList.h.

◆ end() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::end ( const L *  pList)
inlinestatic

Returns an iterator pointing at nullptr.

Definition at line 426 of file EList.h.

◆ end() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::end ( ) const
inline

Definition at line 481 of file EList.h.

◆ forall()

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
template<typename Func >
static void ogdf::EList< L, E, numElem, first, last, next, prev >::forall ( const L *  pList,
const Func &  func 
)
inlinestatic

Definition at line 435 of file EList.h.

◆ forall_call()

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
template<typename A1 >
static void ogdf::EList< L, E, numElem, first, last, next, prev >::forall_call ( const L *  pList,
void(E::*)(A1)  func,
const A1 &  a1 
)
inlinestatic

Definition at line 444 of file EList.h.

◆ front() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static E* ogdf::EList< L, E, numElem, first, last, next, prev >::front ( const L *  pList)
inlinestatic

Returns a pointer to the first element.

Definition at line 252 of file EList.h.

◆ front() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
E* ogdf::EList< L, E, numElem, first, last, next, prev >::front ( ) const
inline

Definition at line 460 of file EList.h.

◆ init() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static void ogdf::EList< L, E, numElem, first, last, next, prev >::init ( L *  pList)
inlinestatic

Initializes pList as an empty embedded list.

Definition at line 238 of file EList.h.

◆ init() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
void ogdf::EList< L, E, numElem, first, last, next, prev >::init ( )
inline

Definition at line 455 of file EList.h.

◆ insertAfter() [1/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::insertAfter ( L *  pList,
E *  elem,
E *  pPrev 
)
inlinestatic

Inserts elem into pList before pPrev.

Definition at line 320 of file EList.h.

◆ insertAfter() [2/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::insertAfter ( L *  pList,
E *  elem,
const iterator &  itPrev 
)
inlinestatic

Inserts elem into pList after position itPrev.

Definition at line 346 of file EList.h.

◆ insertAfter() [3/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::insertAfter ( E *  elem,
E *  pPrev 
)
inline

Definition at line 469 of file EList.h.

◆ insertAfter() [4/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::insertAfter ( E *  elem,
const iterator &  it 
)
inline

Definition at line 470 of file EList.h.

◆ insertBefore() [1/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::insertBefore ( L *  pList,
E *  elem,
E *  pNext 
)
inlinestatic

Inserts elem into pList before pNext.

Definition at line 288 of file EList.h.

◆ insertBefore() [2/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::insertBefore ( L *  pList,
E *  elem,
const iterator &  itNext 
)
inlinestatic

Inserts elem into pList before position itNext.

Definition at line 314 of file EList.h.

◆ insertBefore() [3/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::insertBefore ( E *  elem,
E *  pNext 
)
inline

Definition at line 466 of file EList.h.

◆ insertBefore() [4/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::insertBefore ( E *  elem,
const iterator &  it 
)
inline

Definition at line 467 of file EList.h.

◆ operator<<()

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
void ogdf::EList< L, E, numElem, first, last, next, prev >::operator<< ( E *  elem)
inline

Definition at line 475 of file EList.h.

◆ popBack() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static void ogdf::EList< L, E, numElem, first, last, next, prev >::popBack ( L *  pList)
inlinestatic

Removes the last element of pList.

Definition at line 359 of file EList.h.

◆ popBack() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
void ogdf::EList< L, E, numElem, first, last, next, prev >::popBack ( )
inline

Definition at line 473 of file EList.h.

◆ popFront() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static void ogdf::EList< L, E, numElem, first, last, next, prev >::popFront ( L *  pList)
inlinestatic

Removes the first element of pList.

Definition at line 352 of file EList.h.

◆ popFront() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
void ogdf::EList< L, E, numElem, first, last, next, prev >::popFront ( )
inline

Definition at line 472 of file EList.h.

◆ pushBack() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::pushBack ( L *  pList,
E *  elem 
)
inlinestatic

Appends the element elem to the end of pList.

Definition at line 258 of file EList.h.

◆ pushBack() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::pushBack ( E *  elem)
inline

Definition at line 463 of file EList.h.

◆ pushFront() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::pushFront ( L *  pList,
E *  elem 
)
inlinestatic

Adds element elem at the begin of the list.

Definition at line 272 of file EList.h.

◆ pushFront() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::pushFront ( E *  elem)
inline

Definition at line 464 of file EList.h.

◆ rbegin() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::rbegin ( const L *  pList)
inlinestatic

Returns a reverse iterator pointing at the last element of pList.

Definition at line 429 of file EList.h.

◆ rbegin() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::rbegin ( ) const
inline

Definition at line 482 of file EList.h.

◆ remove() [1/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::remove ( L *  pList,
E *  elem 
)
inlinestatic

Removes elem from pList.

Definition at line 366 of file EList.h.

◆ remove() [2/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::remove ( L *  pList,
const iterator &  it 
)
inlinestatic

Removes the element it is pointing at from pList.

Definition at line 384 of file EList.h.

◆ remove() [3/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::remove ( E *  elem)
inline

Definition at line 477 of file EList.h.

◆ remove() [4/4]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::remove ( const iterator &  it)
inline

Definition at line 478 of file EList.h.

◆ rend() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static iterator ogdf::EList< L, E, numElem, first, last, next, prev >::rend ( const L *  pList)
inlinestatic

Returns a reverse iterator pointing at nullptr.

Definition at line 432 of file EList.h.

◆ rend() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
iterator ogdf::EList< L, E, numElem, first, last, next, prev >::rend ( ) const
inline

Definition at line 483 of file EList.h.

◆ size() [1/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
static int ogdf::EList< L, E, numElem, first, last, next, prev >::size ( const L *  pList)
inlinestatic

Returns the number of elements in this embedded list by reading the numElem var.

Definition at line 246 of file EList.h.

◆ size() [2/2]

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
int ogdf::EList< L, E, numElem, first, last, next, prev >::size ( ) const
inline

Definition at line 457 of file EList.h.

Member Data Documentation

◆ m_pList

template<typename L, typename E, int L::* numElem, E *L::* first, E *L::* last, E *E::* next, E *E::* prev>
L* ogdf::EList< L, E, numElem, first, last, next, prev >::m_pList
private

Definition at line 486 of file EList.h.


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