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

#include <LinkedList.h>

+ Inheritance diagram for LinkedListHead:

Classes

class  Iterator
 

Public Types

typedef Iterator< LinkedListElement > iterator
 

Public Member Functions

 LinkedListHead ()
 
bool isEmpty () const
 
LinkedListElement * getFirst ()
 
LinkedListElement const * getFirst () const
 
LinkedListElement * getLast ()
 
LinkedListElement const * getLast () const
 
void insertFirst (LinkedListElement *pElem)
 
void insertLast (LinkedListElement *pElem)
 
uint32 getSize () const
 
void incSize ()
 
void decSize ()
 

Protected Member Functions

 ~LinkedListHead ()
 

Private Member Functions

 LinkedListHead (LinkedListHead const &)=delete
 
LinkedListHead & operator= (LinkedListHead const &)=delete
 

Private Attributes

LinkedListElement iFirst
 
LinkedListElement iLast
 
uint32 iSize
 

Detailed Description

Definition at line 92 of file LinkedList.h.

Member Typedef Documentation

◆ iterator

Definition at line 216 of file LinkedList.h.

Constructor & Destructor Documentation

◆ LinkedListHead() [1/2]

LinkedListHead::LinkedListHead ( )
inline

Definition at line 100 of file LinkedList.h.

References iFirst, iLast, LinkedListElement::iNext, and LinkedListElement::iPrev.

◆ LinkedListHead() [2/2]

LinkedListHead::LinkedListHead ( LinkedListHead const &  )
privatedelete

◆ ~LinkedListHead()

LinkedListHead::~LinkedListHead ( )
inlineprotected

Definition at line 223 of file LinkedList.h.

Member Function Documentation

◆ decSize()

void LinkedListHead::decSize ( )
inline

Definition at line 144 of file LinkedList.h.

References iSize.

Referenced by MapReference::sourceObjectDestroyLink(), and MapReference::targetObjectDestroyLink().

◆ getFirst() [1/2]

LinkedListElement * LinkedListHead::getFirst ( )
inline

◆ getFirst() [2/2]

LinkedListElement const * LinkedListHead::getFirst ( ) const
inline

Definition at line 111 of file LinkedList.h.

References iFirst, LinkedListElement::iNext, and isEmpty().

◆ getLast() [1/2]

LinkedListElement * LinkedListHead::getLast ( )
inline

Definition at line 113 of file LinkedList.h.

References iLast, LinkedListElement::iPrev, and isEmpty().

◆ getLast() [2/2]

LinkedListElement const * LinkedListHead::getLast ( ) const
inline

Definition at line 114 of file LinkedList.h.

References iLast, LinkedListElement::iPrev, and isEmpty().

◆ getSize()

uint32 LinkedListHead::getSize ( ) const
inline

Definition at line 126 of file LinkedList.h.

References getFirst(), iSize, and LinkedListElement::next().

Referenced by Group::RemoveMember(), and InstanceMap::RemovePlayerFromMap().

◆ incSize()

void LinkedListHead::incSize ( )
inline

Definition at line 143 of file LinkedList.h.

References iSize.

Referenced by MapReference::targetObjectBuildLink().

◆ insertFirst()

void LinkedListHead::insertFirst ( LinkedListElement *  pElem)
inline

◆ insertLast()

void LinkedListHead::insertLast ( LinkedListElement *  pElem)
inline

Definition at line 121 of file LinkedList.h.

References iLast, and LinkedListElement::insertBefore().

◆ isEmpty()

bool LinkedListHead::isEmpty ( ) const
inline

Definition at line 108 of file LinkedList.h.

References iFirst, LinkedListElement::iNext, and LinkedListElement::isInList().

Referenced by Map::AddToMap(), AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), boss_four_horsemen_baseAI::BeginEncounter(), Transport::BuildUpdate(), Player::CheckInstanceValidity(), InstanceScript::DoSendNotifyToInstance(), InstanceScript::DoStartTimedAchievement(), InstanceScript::DoStopTimedAchievement(), InstanceScript::DoUpdateAchievementCriteria(), InstanceScript::DoUpdateWorldState(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::GetCreatureEntry(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::GetCreatureEntry(), instance_nexus::instance_nexus_InstanceMapScript::GetCreatureEntry(), instance_ulduar::instance_ulduar_InstanceMapScript::GetCreatureEntry(), getFirst(), getFirst(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::GetGameObjectEntry(), getLast(), getLast(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::GetPlayerInMap(), boss_coren_direbrew::JustDied(), boss_apothecary_hummel::JustDied(), npc_acolyte_of_shadron::JustDied(), npc_acolyte_of_vesperon::JustDied(), boss_ahune::JustDied(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnCreatureCreate(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), Map::RemoveFromMap(), InstanceMap::Reset(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SpawnEscapeEvent(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::SpawnGunship(), instance_zulaman::instance_zulaman_InstanceMapScript::SummonHostage(), Creature::Update(), Map::Update(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::UpdateQuestCredit(), UpdateWorldState(), and ObjectGridUnloader::Visit().

◆ operator=()

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

Member Data Documentation

◆ iFirst

LinkedListElement LinkedListHead::iFirst
private

Definition at line 95 of file LinkedList.h.

Referenced by getFirst(), getFirst(), insertFirst(), isEmpty(), and LinkedListHead().

◆ iLast

LinkedListElement LinkedListHead::iLast
private

Definition at line 96 of file LinkedList.h.

Referenced by getLast(), getLast(), insertLast(), and LinkedListHead().

◆ iSize

uint32 LinkedListHead::iSize
private

Definition at line 97 of file LinkedList.h.

Referenced by decSize(), getSize(), and incSize().


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