![]() |
TrinityCore
|
#include <Reference.h>
Inheritance diagram for Reference< TO, FROM >:Public Member Functions | |
| Reference () | |
| virtual | ~Reference () |
| void | link (TO *toObj, FROM *fromObj) |
| void | unlink () |
| void | invalidate () |
| bool | isValid () const |
| Reference< TO, FROM > * | next () |
| Reference< TO, FROM > const * | next () const |
| Reference< TO, FROM > * | prev () |
| Reference< TO, FROM > const * | prev () const |
| Reference< TO, FROM > * | nocheck_next () |
| Reference< TO, FROM > const * | nocheck_next () const |
| Reference< TO, FROM > * | nocheck_prev () |
| Reference< TO, FROM > const * | nocheck_prev () const |
| TO * | operator-> () const |
| TO * | getTarget () const |
| FROM * | GetSource () const |
Public Member Functions inherited from LinkedListElement | |
| 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 | |
| virtual void | targetObjectBuildLink ()=0 |
| virtual void | targetObjectDestroyLink ()=0 |
| virtual void | sourceObjectDestroyLink ()=0 |
Protected Member Functions inherited from LinkedListElement | |
| ~LinkedListElement () | |
Private Member Functions | |
| Reference (Reference const &)=delete | |
| Reference & | operator= (Reference const &)=delete |
Private Attributes | |
| TO * | iRefTo |
| FROM * | iRefFrom |
Definition at line 26 of file Reference.h.
|
inline |
Definition at line 42 of file Reference.h.
References Reference< TO, FROM >::iRefFrom, and Reference< TO, FROM >::iRefTo.
Definition at line 43 of file Reference.h.
|
privatedelete |
|
inline |
Definition at line 96 of file Reference.h.
References Reference< TO, FROM >::iRefFrom.
Referenced by Group::DelinkMember(), 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(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::GetGameObjectEntry(), boss_coren_direbrew::JustDied(), boss_headless_horseman::JustDied(), boss_apothecary_hummel::JustDied(), boss_ahune::JustDied(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnCreatureCreate(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), 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(), and Map::Update().
|
inline |
Definition at line 94 of file Reference.h.
References Reference< TO, FROM >::iRefTo.
Referenced by InstanceMap::CannotEnter(), and BattlegroundMap::CannotEnter().
|
inline |
Definition at line 71 of file Reference.h.
References LinkedListElement::delink(), Reference< TO, FROM >::iRefTo, and Reference< TO, FROM >::sourceObjectDestroyLink().
|
inline |
Definition at line 78 of file Reference.h.
References Reference< TO, FROM >::iRefTo.
Referenced by Group::CountTheRoll(), GridObject< T >::IsInGrid(), and Reference< TO, FROM >::link().
|
inline |
Definition at line 46 of file Reference.h.
References ASSERT, Reference< TO, FROM >::iRefFrom, Reference< TO, FROM >::iRefTo, Reference< TO, FROM >::isValid(), Reference< TO, FROM >::targetObjectBuildLink(), and Reference< TO, FROM >::unlink().
Referenced by GridObject< T >::AddToGrid(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::link(), Player::RemoveFromBattlegroundOrBattlefieldRaid(), Player::SetBattlegroundOrBattlefieldRaid(), Player::SetGroup(), Player::SetMap(), and Player::SetOriginalGroup().
Definition at line 83 of file Reference.h.
References LinkedListElement::next().
Referenced by GroupReference::next(), MapReference::next(), GroupReference::next(), and MapReference::next().
|
inline |
Definition at line 84 of file Reference.h.
References LinkedListElement::next().
|
inline |
Definition at line 88 of file Reference.h.
References LinkedListElement::nocheck_next().
|
inline |
Definition at line 89 of file Reference.h.
References LinkedListElement::nocheck_next().
|
inline |
Definition at line 90 of file Reference.h.
References LinkedListElement::nocheck_prev().
Referenced by MapReference::nocheck_prev(), and MapReference::nockeck_prev().
|
inline |
Definition at line 91 of file Reference.h.
References LinkedListElement::nocheck_prev().
|
inline |
Definition at line 93 of file Reference.h.
References Reference< TO, FROM >::iRefTo.
|
privatedelete |
Definition at line 85 of file Reference.h.
References LinkedListElement::prev().
|
inline |
Definition at line 86 of file Reference.h.
References LinkedListElement::prev().
|
protectedpure virtual |
Implemented in GridReference< OBJECT >, GridReference< Corpse >, GridReference< Creature >, GridReference< DynamicObject >, GridReference< GameObject >, GridReference< NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > >, GridReference< Player >, GridReference< T >, GroupReference, LootValidatorRef, and MapReference.
Referenced by Reference< TO, FROM >::invalidate().
|
protectedpure virtual |
Implemented in GridReference< OBJECT >, GridReference< Corpse >, GridReference< Creature >, GridReference< DynamicObject >, GridReference< GameObject >, GridReference< NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > >, GridReference< Player >, GridReference< T >, Roll, GroupReference, and MapReference.
Referenced by Reference< TO, FROM >::link().
|
protectedpure virtual |
Implemented in GridReference< OBJECT >, GridReference< Corpse >, GridReference< Creature >, GridReference< DynamicObject >, GridReference< GameObject >, GridReference< NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > >, GridReference< Player >, GridReference< T >, GroupReference, LootValidatorRef, and MapReference.
Referenced by Reference< TO, FROM >::unlink().
|
inline |
Definition at line 61 of file Reference.h.
References LinkedListElement::delink(), Reference< TO, FROM >::iRefFrom, Reference< TO, FROM >::iRefTo, and Reference< TO, FROM >::targetObjectDestroyLink().
Referenced by Group::DelinkMember(), Reference< TO, FROM >::link(), Player::RemoveFromBattlegroundOrBattlefieldRaid(), GridObject< T >::RemoveFromGrid(), Player::ResetMap(), Player::SetBattlegroundOrBattlefieldRaid(), Player::SetGroup(), Player::SetOriginalGroup(), and GroupReference::~GroupReference().
|
private |
Definition at line 30 of file Reference.h.
Referenced by Reference< TO, FROM >::GetSource(), Reference< TO, FROM >::link(), Reference< TO, FROM >::Reference(), and Reference< TO, FROM >::unlink().
|
private |
Definition at line 29 of file Reference.h.
Referenced by Reference< TO, FROM >::getTarget(), Reference< TO, FROM >::invalidate(), Reference< TO, FROM >::isValid(), Reference< TO, FROM >::link(), Reference< TO, FROM >::operator->(), Reference< TO, FROM >::Reference(), and Reference< TO, FROM >::unlink().