AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MapReference Class Reference

#include "MapReference.h"

Inheritance diagram for MapReference:
Reference< Map, Player > LinkedListElement

Public Member Functions

 MapReference ()
 
 ~MapReference () override
 
MapReferencenext ()
 
MapReference const * next () const
 
MapReferencenockeck_prev ()
 
MapReference const * nocheck_prev () const
 
- Public Member Functions inherited from Reference< Map, Player >
 Reference ()
 
virtual ~Reference ()=default
 
void link (Map *toObj, Player *fromObj)
 
void unlink ()
 
void invalidate ()
 
bool isValid () const
 
Reference< Map, Player > * next ()
 
Reference< Map, Player > const * next () const
 
Reference< Map, Player > * prev ()
 
Reference< Map, Player > const * prev () const
 
Reference< Map, Player > * nocheck_next ()
 
Reference< Map, Player > const * nocheck_next () const
 
Reference< Map, Player > * nocheck_prev ()
 
Reference< Map, Player > const * nocheck_prev () const
 
Mapoperator-> () const
 
MapgetTarget () const
 
PlayerGetSource () const
 
- Public Member Functions inherited from LinkedListElement
 LinkedListElement ()=default
 
 ~LinkedListElement ()
 
bool hasNext () const
 
bool hasPrev () const
 
bool isInList () const
 
LinkedListElementnext ()
 
LinkedListElement const * next () const
 
LinkedListElementprev ()
 
LinkedListElement const * prev () const
 
LinkedListElementnocheck_next ()
 
LinkedListElement const * nocheck_next () const
 
LinkedListElementnocheck_prev ()
 
LinkedListElement const * nocheck_prev () const
 
void delink ()
 
void insertBefore (LinkedListElement *pElem)
 
void insertAfter (LinkedListElement *pElem)
 

Protected Member Functions

void targetObjectBuildLink () override
 
void targetObjectDestroyLink () override
 
void sourceObjectDestroyLink () override
 
virtual void targetObjectBuildLink ()=0
 
virtual void targetObjectDestroyLink ()=0
 
virtual void sourceObjectDestroyLink ()=0
 

Detailed Description

Constructor & Destructor Documentation

◆ MapReference()

MapReference::MapReference ( )
inline
Definition: Reference.h:27

◆ ~MapReference()

MapReference::~MapReference ( )
inlineoverride
45{ unlink(); }
void unlink()
Definition: Reference.h:62

References Reference< Map, Player >::unlink().

Member Function Documentation

◆ next() [1/2]

MapReference * MapReference::next ( )
inline
Reference< TO, FROM > * next()
Definition: Reference.h:84
Definition: MapReference.h:25

References Reference< TO, FROM >::next().

◆ next() [2/2]

MapReference const * MapReference::next ( ) const
inline

◆ nocheck_prev()

MapReference const * MapReference::nocheck_prev ( ) const
inline
Reference< TO, FROM > * nocheck_prev()
Definition: Reference.h:91

References Reference< TO, FROM >::nocheck_prev().

Referenced by Map::UpdateIteratorBack().

◆ nockeck_prev()

MapReference * MapReference::nockeck_prev ( )
inline

◆ sourceObjectDestroyLink()

void MapReference::sourceObjectDestroyLink ( )
inlineoverrideprotectedvirtual

Implements Reference< Map, Player >.

39 {
40 // called from invalidate()
42 }
void decSize()
Definition: LinkedList.h:135
Map * getTarget() const
Definition: Reference.h:95
MapRefMgr m_mapRefMgr
Definition: Map.h:714

References LinkedListHead::decSize(), Reference< Map, Player >::getTarget(), and Map::m_mapRefMgr.

◆ targetObjectBuildLink()

void MapReference::targetObjectBuildLink ( )
inlineoverrideprotectedvirtual

Implements Reference< Map, Player >.

28 {
29 // called from link()
32 }
void incSize()
Definition: LinkedList.h:134
void insertFirst(LinkedListElement *pElem)
Definition: LinkedList.h:105

References Reference< Map, Player >::getTarget(), LinkedListHead::incSize(), LinkedListHead::insertFirst(), and Map::m_mapRefMgr.

◆ targetObjectDestroyLink()

void MapReference::targetObjectDestroyLink ( )
inlineoverrideprotectedvirtual

Implements Reference< Map, Player >.

34 {
35 // called from unlink()
37 }
bool isValid() const
Definition: Reference.h:79

References LinkedListHead::decSize(), Reference< Map, Player >::getTarget(), Reference< Map, Player >::isValid(), and Map::m_mapRefMgr.