TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GridObject< T > Class Template Reference

#include <Object.h>

Public Member Functions

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

Private Attributes

GridReference< T > _gridRef
 

Constructor & Destructor Documentation

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

Member Function Documentation

template<class T>
void GridObject< T >::AddToGrid ( GridRefManager< T > &  m)
inline
361 { ASSERT(!IsInGrid()); _gridRef.link(&m, (T*)this); }
GridReference< T > _gridRef
Definition: Object.h:364
bool IsInGrid() const
Definition: Object.h:360
void link(TO *toObj, FROM *fromObj)
Definition: Reference.h:46
#define ASSERT
Definition: Errors.h:55

+ Here is the caller graph for this function:

template<class T>
bool GridObject< T >::IsInGrid ( ) const
inline
360 { return _gridRef.isValid(); }
GridReference< T > _gridRef
Definition: Object.h:364
bool isValid() const
Definition: Reference.h:78

+ Here is the caller graph for this function:

template<class T>
void GridObject< T >::RemoveFromGrid ( )
inline
362 { ASSERT(IsInGrid()); _gridRef.unlink(); }
void unlink()
Definition: Reference.h:61
GridReference< T > _gridRef
Definition: Object.h:364
bool IsInGrid() const
Definition: Object.h:360
#define ASSERT
Definition: Errors.h:55

+ Here is the caller graph for this function:

Member Data Documentation

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

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