TrinityCore
Loading...
Searching...
No Matches
Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER > Class Template Reference

#include <Grid.h>

Public Member Functions

 ~Grid ()
 
template<class SPECIFIC_OBJECT >
void AddWorldObject (SPECIFIC_OBJECT *obj)
 
template<class T >
void Visit (TypeContainerVisitor< T, GRID_OBJECT_CONTAINER > &visitor)
 
template<class T >
void Visit (TypeContainerVisitor< T, WORLD_OBJECT_CONTAINER > &visitor)
 
template<class T >
std::size_t GetWorldObjectCountInGrid () const
 
template<class SPECIFIC_OBJECT >
void AddGridObject (SPECIFIC_OBJECT *obj)
 
template<class T >
std::size_t GetGridObjectCountInGrid () const
 

Private Attributes

GRID_OBJECT_CONTAINER i_container
 
WORLD_OBJECT_CONTAINER i_objects
 

Detailed Description

template<class WORLD_OBJECT_CONTAINER, class GRID_OBJECT_CONTAINER>
class Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >

Definition at line 41 of file Grid.h.

Constructor & Destructor Documentation

◆ ~Grid()

template<class WORLD_OBJECT_CONTAINER , class GRID_OBJECT_CONTAINER >
Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::~Grid ( )
inline

destructor to clean up its resources. This includes unloading the grid if it has not been unload.

Definition at line 48 of file Grid.h.

Member Function Documentation

◆ AddGridObject()

template<class WORLD_OBJECT_CONTAINER , class GRID_OBJECT_CONTAINER >
template<class SPECIFIC_OBJECT >
void Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::AddGridObject ( SPECIFIC_OBJECT *  obj)
inline

Inserts a container type object into the grid.

Definition at line 95 of file Grid.h.

+ Here is the caller graph for this function:

◆ AddWorldObject()

template<class WORLD_OBJECT_CONTAINER , class GRID_OBJECT_CONTAINER >
template<class SPECIFIC_OBJECT >
void Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::AddWorldObject ( SPECIFIC_OBJECT *  obj)
inline

an object of interested enters the grid

Definition at line 53 of file Grid.h.

+ Here is the caller graph for this function:

◆ GetGridObjectCountInGrid()

template<class WORLD_OBJECT_CONTAINER , class GRID_OBJECT_CONTAINER >
template<class T >
std::size_t Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::GetGridObjectCountInGrid ( ) const
inline

Removes a containter type object from the grid Returns the number of container type object within the grid.

Definition at line 114 of file Grid.h.

◆ GetWorldObjectCountInGrid()

template<class WORLD_OBJECT_CONTAINER , class GRID_OBJECT_CONTAINER >
template<class T >
std::size_t Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::GetWorldObjectCountInGrid ( ) const
inline

Returns the number of object within the grid.

Definition at line 87 of file Grid.h.

◆ Visit() [1/2]

template<class WORLD_OBJECT_CONTAINER , class GRID_OBJECT_CONTAINER >
template<class T >
void Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::Visit ( TypeContainerVisitor< T, GRID_OBJECT_CONTAINER > &  visitor)
inline

an object of interested exits the grid

Definition at line 72 of file Grid.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Visit() [2/2]

template<class WORLD_OBJECT_CONTAINER , class GRID_OBJECT_CONTAINER >
template<class T >
void Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::Visit ( TypeContainerVisitor< T, WORLD_OBJECT_CONTAINER > &  visitor)
inline

Definition at line 79 of file Grid.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ i_container

template<class WORLD_OBJECT_CONTAINER , class GRID_OBJECT_CONTAINER >
GRID_OBJECT_CONTAINER Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::i_container
private

Definition at line 120 of file Grid.h.

◆ i_objects

template<class WORLD_OBJECT_CONTAINER , class GRID_OBJECT_CONTAINER >
WORLD_OBJECT_CONTAINER Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::i_objects
private

Definition at line 121 of file Grid.h.


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