OregonCore  revision be9e804-git
Your Favourite TBC server
GridReference< OBJECT > Class Template Reference

#include <GridReference.h>

+ Inheritance diagram for GridReference< OBJECT >:

Public Member Functions

 GridReference ()
 
 ~GridReference () override
 
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 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

template<class OBJECT>
class GridReference< OBJECT >

Definition at line 27 of file GridReference.h.

Constructor & Destructor Documentation

template<class OBJECT>
GridReference< OBJECT >::GridReference ( )
inline

Definition at line 47 of file GridReference.h.

template<class OBJECT>
GridReference< OBJECT >::~GridReference ( )
inlineoverride

Definition at line 48 of file GridReference.h.

49  {
50  this->unlink();
51  }

Member Function Documentation

template<class OBJECT>
GridReference* GridReference< OBJECT >::next ( )
inline

Definition at line 52 of file GridReference.h.

Referenced by GridReference< Creature >::next().

53  {
55  }
GridReference * next()
Definition: GridReference.h:52
template<class OBJECT>
void GridReference< OBJECT >::sourceObjectDestroyLink ( )
inlineoverrideprotectedvirtual

Implements Reference< GridRefManager< OBJECT >, OBJECT >.

Definition at line 41 of file GridReference.h.

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

Implements Reference< GridRefManager< OBJECT >, OBJECT >.

Definition at line 30 of file GridReference.h.

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

Implements Reference< GridRefManager< OBJECT >, OBJECT >.

Definition at line 36 of file GridReference.h.

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

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