TrinityCore
Loading...
Searching...
No Matches
GridObject< T > Class Template Reference

#include <GridObject.h>

Public Member Functions

virtual ~GridObject ()
 
bool IsInGrid () const
 
void AddToGrid (GridRefManager< T > &m)
 
void RemoveFromGrid ()
 

Private Attributes

GridReference< T > _gridRef
 

Constructor & Destructor Documentation

◆ ~GridObject()

template<class T >
virtual GridObject< T >::~GridObject ( )
inlinevirtual
28{ }

Member Function Documentation

◆ AddToGrid()

template<class T >
void GridObject< T >::AddToGrid ( GridRefManager< T > &  m)
inline
31{ ASSERT(!IsInGrid()); _gridRef.link(&m, (T*)this); }
#define ASSERT
Definition: Errors.h:68
bool IsInGrid() const
Definition: GridObject.h:30
GridReference< T > _gridRef
Definition: GridObject.h:34
void link(TO *toObj, FROM *fromObj)
Definition: Reference.h:46
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInGrid()

template<class T >
bool GridObject< T >::IsInGrid ( ) const
inline
30{ return _gridRef.isValid(); }
bool isValid() const
Definition: Reference.h:78
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveFromGrid()

template<class T >
void GridObject< T >::RemoveFromGrid ( )
inline
void unlink()
Definition: Reference.h:61
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _gridRef

template<class T >
GridReference<T> GridObject< T >::_gridRef
private

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