OregonCore  revision be9e804-git
Your Favourite TBC server
MapReference Class Reference

#include <MapReference.h>

+ Inheritance diagram for MapReference:

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 ()
 
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 ()
 
virtual ~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
 

Detailed Description

Definition at line 24 of file MapReference.h.

Constructor & Destructor Documentation

MapReference::MapReference ( )
inline

Definition at line 44 of file MapReference.h.

MapReference::~MapReference ( )
inlineoverride

Definition at line 45 of file MapReference.h.

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

46  {
47  unlink();
48  }

Member Function Documentation

MapReference* MapReference::next ( )
inline

Definition at line 49 of file MapReference.h.

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

50  {
52  }
Reference< TO, FROM > * next()
Definition: Reference.h:79
MapReference const* MapReference::next ( ) const
inline

Definition at line 53 of file MapReference.h.

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

54  {
56  }
Reference< TO, FROM > * next()
Definition: Reference.h:79
MapReference const* MapReference::nocheck_prev ( ) const
inline

Definition at line 61 of file MapReference.h.

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

Referenced by Map::UpdateIteratorBack().

62  {
64  }
Reference< TO, FROM > * nocheck_prev()
Definition: Reference.h:86
MapReference* MapReference::nockeck_prev ( )
inline

Definition at line 57 of file MapReference.h.

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

58  {
60  }
Reference< TO, FROM > * nocheck_prev()
Definition: Reference.h:86
void MapReference::sourceObjectDestroyLink ( )
inlineoverrideprotectedvirtual

Implements Reference< Map, Player >.

Definition at line 38 of file MapReference.h.

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

39  {
40  // called from invalidate()
42  }
void decSize()
Definition: LinkedList.h:133
MapRefManager m_mapRefManager
Definition: Map.h:605
Map * getTarget() const
Definition: Reference.h:90
void MapReference::targetObjectBuildLink ( )
inlineoverrideprotectedvirtual

Implements Reference< Map, Player >.

Definition at line 27 of file MapReference.h.

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

28  {
29  // called from link()
32  }
void incSize()
Definition: LinkedList.h:132
void insertFirst(LinkedListElement *pElem)
Definition: LinkedList.h:105
MapRefManager m_mapRefManager
Definition: Map.h:605
Map * getTarget() const
Definition: Reference.h:90
void MapReference::targetObjectDestroyLink ( )
inlineoverrideprotectedvirtual

Implements Reference< Map, Player >.

Definition at line 33 of file MapReference.h.

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

34  {
35  // called from unlink()
37  }
void decSize()
Definition: LinkedList.h:133
bool isValid() const
Definition: Reference.h:74
MapRefManager m_mapRefManager
Definition: Map.h:605
Map * getTarget() const
Definition: Reference.h:90

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