TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LinkedListElement Class Reference

#include <LinkedList.h>

Public Member Functions

 LinkedListElement ()
 
virtual ~LinkedListElement ()
 
bool hasNext () const
 
bool hasPrev () const
 
bool isInList () const
 
LinkedListElementnext ()
 
LinkedListElement constnext () const
 
LinkedListElementprev ()
 
LinkedListElement constprev () const
 
LinkedListElementnocheck_next ()
 
LinkedListElement constnocheck_next () const
 
LinkedListElementnocheck_prev ()
 
LinkedListElement constnocheck_prev () const
 
void delink ()
 
void insertBefore (LinkedListElement *pElem)
 
void insertAfter (LinkedListElement *pElem)
 

Private Member Functions

 LinkedListElement (LinkedListElement const &)
 
LinkedListElementoperator= (LinkedListElement const &)
 

Private Attributes

LinkedListElementiNext
 
LinkedListElementiPrev
 

Friends

class LinkedListHead
 

Constructor & Destructor Documentation

LinkedListElement::LinkedListElement ( )
inline
36 : iNext(NULL), iPrev(NULL) { }
LinkedListElement * iNext
Definition: LinkedList.h:33
arena_t NULL
Definition: jemalloc_internal.h:624
LinkedListElement * iPrev
Definition: LinkedList.h:34
virtual LinkedListElement::~LinkedListElement ( )
inlinevirtual
37 { delink(); }
void delink()
Definition: LinkedList.h:53

+ Here is the call graph for this function:

LinkedListElement::LinkedListElement ( LinkedListElement const )
private

Member Function Documentation

void LinkedListElement::delink ( )
inline
54  {
55  if (isInList())
56  {
58  }
59  }
LinkedListElement * iNext
Definition: LinkedList.h:33
arena_t NULL
Definition: jemalloc_internal.h:624
bool isInList() const
Definition: LinkedList.h:41
LinkedListElement * iPrev
Definition: LinkedList.h:34

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool LinkedListElement::hasNext ( ) const
inline
39 { return(iNext && iNext->iNext != NULL); }
LinkedListElement * iNext
Definition: LinkedList.h:33
arena_t NULL
Definition: jemalloc_internal.h:624

+ Here is the caller graph for this function:

bool LinkedListElement::hasPrev ( ) const
inline
40 { return(iPrev && iPrev->iPrev != NULL); }
arena_t NULL
Definition: jemalloc_internal.h:624
LinkedListElement * iPrev
Definition: LinkedList.h:34

+ Here is the caller graph for this function:

void LinkedListElement::insertAfter ( LinkedListElement pElem)
inline
70  {
71  pElem->iPrev = this;
72  pElem->iNext = iNext;
73  iNext->iPrev = pElem;
74  iNext = pElem;
75  }
LinkedListElement * iNext
Definition: LinkedList.h:33
LinkedListElement * iPrev
Definition: LinkedList.h:34

+ Here is the caller graph for this function:

void LinkedListElement::insertBefore ( LinkedListElement pElem)
inline
62  {
63  pElem->iNext = this;
64  pElem->iPrev = iPrev;
65  iPrev->iNext = pElem;
66  iPrev = pElem;
67  }
LinkedListElement * iNext
Definition: LinkedList.h:33
LinkedListElement * iPrev
Definition: LinkedList.h:34

+ Here is the caller graph for this function:

bool LinkedListElement::isInList ( ) const
inline
41 { return(iNext != NULL && iPrev != NULL); }
LinkedListElement * iNext
Definition: LinkedList.h:33
arena_t NULL
Definition: jemalloc_internal.h:624
LinkedListElement * iPrev
Definition: LinkedList.h:34

+ Here is the caller graph for this function:

LinkedListElement* LinkedListElement::next ( )
inline
43 { return hasNext() ? iNext : NULL; }
bool hasNext() const
Definition: LinkedList.h:39
LinkedListElement * iNext
Definition: LinkedList.h:33
arena_t NULL
Definition: jemalloc_internal.h:624

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LinkedListElement const* LinkedListElement::next ( ) const
inline
44 { return hasNext() ? iNext : NULL; }
bool hasNext() const
Definition: LinkedList.h:39
LinkedListElement * iNext
Definition: LinkedList.h:33
arena_t NULL
Definition: jemalloc_internal.h:624

+ Here is the call graph for this function:

LinkedListElement* LinkedListElement::nocheck_next ( )
inline
48 { return iNext; }
LinkedListElement * iNext
Definition: LinkedList.h:33

+ Here is the caller graph for this function:

LinkedListElement const* LinkedListElement::nocheck_next ( ) const
inline
49 { return iNext; }
LinkedListElement * iNext
Definition: LinkedList.h:33
LinkedListElement* LinkedListElement::nocheck_prev ( )
inline
50 { return iPrev; }
LinkedListElement * iPrev
Definition: LinkedList.h:34

+ Here is the caller graph for this function:

LinkedListElement const* LinkedListElement::nocheck_prev ( ) const
inline
51 { return iPrev; }
LinkedListElement * iPrev
Definition: LinkedList.h:34
LinkedListElement& LinkedListElement::operator= ( LinkedListElement const )
private
LinkedListElement* LinkedListElement::prev ( )
inline
45 { return hasPrev() ? iPrev : NULL; }
arena_t NULL
Definition: jemalloc_internal.h:624
bool hasPrev() const
Definition: LinkedList.h:40
LinkedListElement * iPrev
Definition: LinkedList.h:34

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LinkedListElement const* LinkedListElement::prev ( ) const
inline
46 { return hasPrev() ? iPrev : NULL; }
arena_t NULL
Definition: jemalloc_internal.h:624
bool hasPrev() const
Definition: LinkedList.h:40
LinkedListElement * iPrev
Definition: LinkedList.h:34

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class LinkedListHead
friend

Member Data Documentation

LinkedListElement* LinkedListElement::iNext
private
LinkedListElement* LinkedListElement::iPrev
private

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