TrinityCore
Loading...
Searching...
No Matches
LinkedListElement Class Reference

#include <LinkedList.h>

+ Inheritance diagram for LinkedListElement:

Public Member Functions

 LinkedListElement ()
 
bool hasNext () const
 
bool hasPrev () const
 
bool isInList () const
 
LinkedListElement * next ()
 
LinkedListElement const * next () const
 
LinkedListElement * prev ()
 
LinkedListElement const * prev () const
 
LinkedListElement * nocheck_next ()
 
LinkedListElement const * nocheck_next () const
 
LinkedListElement * nocheck_prev ()
 
LinkedListElement const * nocheck_prev () const
 
void delink ()
 
void insertBefore (LinkedListElement *pElem)
 
void insertAfter (LinkedListElement *pElem)
 

Protected Member Functions

 ~LinkedListElement ()
 

Private Member Functions

 LinkedListElement (LinkedListElement const &)=delete
 
LinkedListElement & operator= (LinkedListElement const &)=delete
 

Private Attributes

LinkedListElement * iNext
 
LinkedListElement * iPrev
 

Friends

class LinkedListHead
 

Detailed Description

Definition at line 27 of file LinkedList.h.

Constructor & Destructor Documentation

◆ LinkedListElement() [1/2]

LinkedListElement::LinkedListElement ( )
inline

Definition at line 36 of file LinkedList.h.

◆ LinkedListElement() [2/2]

LinkedListElement::LinkedListElement ( LinkedListElement const &  )
privatedelete

◆ ~LinkedListElement()

LinkedListElement::~LinkedListElement ( )
inlineprotected

Definition at line 84 of file LinkedList.h.

References delink().

Member Function Documentation

◆ delink()

void LinkedListElement::delink ( )
inline

◆ hasNext()

bool LinkedListElement::hasNext ( ) const
inline

Definition at line 38 of file LinkedList.h.

References iNext.

Referenced by next(), and next().

◆ hasPrev()

bool LinkedListElement::hasPrev ( ) const
inline

Definition at line 39 of file LinkedList.h.

References iPrev.

Referenced by prev(), and prev().

◆ insertAfter()

void LinkedListElement::insertAfter ( LinkedListElement *  pElem)
inline

Definition at line 71 of file LinkedList.h.

References iNext, and iPrev.

Referenced by LinkedListHead::insertFirst().

◆ insertBefore()

void LinkedListElement::insertBefore ( LinkedListElement *  pElem)
inline

Definition at line 63 of file LinkedList.h.

References iNext, and iPrev.

Referenced by LinkedListHead::insertLast().

◆ isInList()

bool LinkedListElement::isInList ( ) const
inline

Definition at line 40 of file LinkedList.h.

References iNext, and iPrev.

Referenced by delink(), and LinkedListHead::isEmpty().

◆ next() [1/2]

LinkedListElement * LinkedListElement::next ( )
inline

Definition at line 42 of file LinkedList.h.

References hasNext(), and iNext.

Referenced by LinkedListHead::getSize(), Reference< TO, FROM >::next(), and Reference< TO, FROM >::next().

◆ next() [2/2]

LinkedListElement const * LinkedListElement::next ( ) const
inline

Definition at line 43 of file LinkedList.h.

References hasNext(), and iNext.

◆ nocheck_next() [1/2]

LinkedListElement * LinkedListElement::nocheck_next ( )
inline

Definition at line 47 of file LinkedList.h.

References iNext.

Referenced by Reference< TO, FROM >::nocheck_next(), and Reference< TO, FROM >::nocheck_next().

◆ nocheck_next() [2/2]

LinkedListElement const * LinkedListElement::nocheck_next ( ) const
inline

Definition at line 48 of file LinkedList.h.

References iNext.

◆ nocheck_prev() [1/2]

LinkedListElement * LinkedListElement::nocheck_prev ( )
inline

Definition at line 49 of file LinkedList.h.

References iPrev.

Referenced by Reference< TO, FROM >::nocheck_prev(), and Reference< TO, FROM >::nocheck_prev().

◆ nocheck_prev() [2/2]

LinkedListElement const * LinkedListElement::nocheck_prev ( ) const
inline

Definition at line 50 of file LinkedList.h.

References iPrev.

◆ operator=()

LinkedListElement & LinkedListElement::operator= ( LinkedListElement const &  )
privatedelete

◆ prev() [1/2]

LinkedListElement * LinkedListElement::prev ( )
inline

Definition at line 44 of file LinkedList.h.

References hasPrev(), and iPrev.

Referenced by Reference< TO, FROM >::prev(), and Reference< TO, FROM >::prev().

◆ prev() [2/2]

LinkedListElement const * LinkedListElement::prev ( ) const
inline

Definition at line 45 of file LinkedList.h.

References hasPrev(), and iPrev.

Friends And Related Symbol Documentation

◆ LinkedListHead

friend class LinkedListHead
friend

Definition at line 30 of file LinkedList.h.

Member Data Documentation

◆ iNext

◆ iPrev


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