TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GridReference< OBJECT > Singleton Reference

#include <GridReference.h>

Public Member Functions

 GridReference ()
 
 ~GridReference ()
 
GridReferencenext ()
 
- Public Member Functions inherited from Reference< GridRefManager< OBJECT >, OBJECT >
 Reference ()
 
virtual ~Reference ()
 
void link (GridRefManager< OBJECT > *toObj, OBJECT *fromObj)
 
void unlink ()
 
void invalidate ()
 
bool isValid () const
 
Reference< GridRefManager
< OBJECT >, OBJECT > * 
next ()
 
Reference< GridRefManager
< OBJECT >, OBJECT > const
next () const
 
Reference< GridRefManager
< OBJECT >, OBJECT > * 
prev ()
 
Reference< GridRefManager
< OBJECT >, OBJECT > const
prev () const
 
Reference< GridRefManager
< OBJECT >, OBJECT > * 
nocheck_next ()
 
Reference< GridRefManager
< OBJECT >, OBJECT > const
nocheck_next () const
 
Reference< GridRefManager
< OBJECT >, OBJECT > * 
nocheck_prev ()
 
Reference< GridRefManager
< OBJECT >, OBJECT > const
nocheck_prev () const
 
GridRefManager< OBJECT > * operator-> () const
 
GridRefManager< OBJECT > * getTarget () const
 
OBJECT * GetSource () const
 
- Public Member Functions inherited from LinkedListElement
 LinkedListElement ()
 
virtual ~LinkedListElement ()
 
bool hasNext () const
 
bool hasPrev () const
 
bool isInList () const
 
LinkedListElementnext ()
 
LinkedListElement constnext () const
 
LinkedListElementprev ()
 
LinkedListElement constprev () const
 
LinkedListElementnocheck_next ()
 
LinkedListElement constnocheck_next () const
 
LinkedListElementnocheck_prev ()
 
LinkedListElement constnocheck_prev () const
 
void delink ()
 
void insertBefore (LinkedListElement *pElem)
 
void insertAfter (LinkedListElement *pElem)
 

Protected Member Functions

void targetObjectBuildLink () override
 
void targetObjectDestroyLink () override
 
void sourceObjectDestroyLink () override
 

Constructor & Destructor Documentation

template<class OBJECT>
GridReference< OBJECT >::GridReference ( )
inline
48 : Reference<GridRefManager<OBJECT>, OBJECT>() { }
Definition: Reference.h:27
template<class OBJECT>
GridReference< OBJECT >::~GridReference ( )
inline
49 { this->unlink(); }
void unlink()
Definition: Reference.h:61

Member Function Documentation

template<class OBJECT>
GridReference* GridReference< OBJECT >::next ( )
inline
Definition: Reference.h:27
Definition: GridReference.h:28
GridReference * next()
Definition: GridReference.h:50

+ Here is the caller graph for this function:

template<class OBJECT>
void GridReference< OBJECT >::sourceObjectDestroyLink ( )
inlineoverrideprotectedvirtual

Implements Reference< GridRefManager< OBJECT >, OBJECT >.

43  {
44  // called from invalidate()
45  this->getTarget()->decSize();
46  }
GridRefManager< OBJECT > * getTarget() const
Definition: Reference.h:94
template<class OBJECT>
void GridReference< OBJECT >::targetObjectBuildLink ( )
inlineoverrideprotectedvirtual

Implements Reference< GridRefManager< OBJECT >, OBJECT >.

32  {
33  // called from link()
34  this->getTarget()->insertFirst(this);
35  this->getTarget()->incSize();
36  }
GridRefManager< OBJECT > * getTarget() const
Definition: Reference.h:94
template<class OBJECT>
void GridReference< OBJECT >::targetObjectDestroyLink ( )
inlineoverrideprotectedvirtual

Implements Reference< GridRefManager< OBJECT >, OBJECT >.

38  {
39  // called from unlink()
40  if (this->isValid()) this->getTarget()->decSize();
41  }
bool isValid() const
Definition: Reference.h:78
GridRefManager< OBJECT > * getTarget() const
Definition: Reference.h:94

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