Open
Graph Drawing
Framework

 v.2012.05
 

ogdf::EStack< S, E, first, next > Class Template Reference

The embedded stack class template. More...

#include <ogdf/basic/EList.h>

List of all members.

Static Public Member Functions

static void init (S *pStack)
 Initializes pStack as empty stack.
static void pop (S *pStack)
 Removes the top element from pStack without returning it.
static E * popRet (S *pStack)
 Removes the top element and returns it.
static void push (S *pStack, E *pElem)
 Pushes the new element pElem onto pStack.
static E * top (const S *pStack)
 Returns a pointer to the top element of pStack.
static bool empty (const S *pStack)
 Returns true if pStack is empty.

Detailed Description

template<typename S, typename E, E *S::* first, E *E::* next>
class ogdf::EStack< S, E, first, next >

The embedded stack class template.

Definition at line 113 of file EList.h.


Member Function Documentation

template<typename S , typename E , E *S::* first, E *E::* next>
static bool ogdf::EStack< S, E, first, next >::empty ( const S *  pStack) [inline, static]

Returns true if pStack is empty.

Definition at line 150 of file EList.h.

template<typename S , typename E , E *S::* first, E *E::* next>
static void ogdf::EStack< S, E, first, next >::init ( S *  pStack) [inline, static]

Initializes pStack as empty stack.

Definition at line 117 of file EList.h.

template<typename S , typename E , E *S::* first, E *E::* next>
static void ogdf::EStack< S, E, first, next >::pop ( S *  pStack) [inline, static]

Removes the top element from pStack without returning it.

Definition at line 123 of file EList.h.

template<typename S , typename E , E *S::* first, E *E::* next>
static E* ogdf::EStack< S, E, first, next >::popRet ( S *  pStack) [inline, static]

Removes the top element and returns it.

Definition at line 129 of file EList.h.

template<typename S , typename E , E *S::* first, E *E::* next>
static void ogdf::EStack< S, E, first, next >::push ( S *  pStack,
E *  pElem 
) [inline, static]

Pushes the new element pElem onto pStack.

Definition at line 137 of file EList.h.

template<typename S , typename E , E *S::* first, E *E::* next>
static E* ogdf::EStack< S, E, first, next >::top ( const S *  pStack) [inline, static]

Returns a pointer to the top element of pStack.

Definition at line 144 of file EList.h.


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