TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Trinity::WorldObjectListSearcher< Check > Struct Template Reference

#include <GridNotifiers.h>

Public Member Functions

 WorldObjectListSearcher (WorldObject const *searcher, std::list< WorldObject * > &objects, Check &check, uint32 mapTypeMask=GRID_MAP_TYPE_MASK_ALL)
 
void Visit (PlayerMapType &m)
 
void Visit (CreatureMapType &m)
 
void Visit (CorpseMapType &m)
 
void Visit (GameObjectMapType &m)
 
void Visit (DynamicObjectMapType &m)
 
void Visit (AreaTriggerMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefManager< NOT_INTERESTED > &)
 

Public Attributes

uint32 i_mapTypeMask
 
WorldObject const_searcher
 
std::list< WorldObject * > & i_objects
 
Check & i_check
 

Constructor & Destructor Documentation

template<class Check>
Trinity::WorldObjectListSearcher< Check >::WorldObjectListSearcher ( WorldObject const searcher,
std::list< WorldObject * > &  objects,
Check &  check,
uint32  mapTypeMask = GRID_MAP_TYPE_MASK_ALL 
)
inline
226  : i_mapTypeMask(mapTypeMask), _searcher(searcher), i_objects(objects), i_check(check) { }
Check & i_check
Definition: GridNotifiers.h:223
uint32 i_mapTypeMask
Definition: GridNotifiers.h:220
std::list< WorldObject * > & i_objects
Definition: GridNotifiers.h:222
WorldObject const * _searcher
Definition: GridNotifiers.h:221
T check(T value)
Definition: format.h:305

Member Function Documentation

template<class Check >
void Trinity::WorldObjectListSearcher< Check >::Visit ( PlayerMapType m)
281 {
283  return;
284 
285  for (PlayerMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
286  if (i_check(itr->GetSource()))
287  i_objects.push_back(itr->GetSource());
288 }
Check & i_check
Definition: GridNotifiers.h:223
uint32 i_mapTypeMask
Definition: GridNotifiers.h:220
Definition: GridDefines.h:77
std::list< WorldObject * > & i_objects
Definition: GridNotifiers.h:222
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

template<class Check >
void Trinity::WorldObjectListSearcher< Check >::Visit ( CreatureMapType m)
292 {
294  return;
295 
296  for (CreatureMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
297  if (i_check(itr->GetSource()))
298  i_objects.push_back(itr->GetSource());
299 }
Check & i_check
Definition: GridNotifiers.h:223
uint32 i_mapTypeMask
Definition: GridNotifiers.h:220
std::list< WorldObject * > & i_objects
Definition: GridNotifiers.h:222
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
Definition: GridDefines.h:74
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

template<class Check >
void Trinity::WorldObjectListSearcher< Check >::Visit ( CorpseMapType m)
303 {
305  return;
306 
307  for (CorpseMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
308  if (i_check(itr->GetSource()))
309  i_objects.push_back(itr->GetSource());
310 }
Check & i_check
Definition: GridNotifiers.h:223
uint32 i_mapTypeMask
Definition: GridNotifiers.h:220
std::list< WorldObject * > & i_objects
Definition: GridNotifiers.h:222
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37
Definition: GridDefines.h:73

+ Here is the call graph for this function:

template<class Check >
void Trinity::WorldObjectListSearcher< Check >::Visit ( GameObjectMapType m)
314 {
316  return;
317 
318  for (GameObjectMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
319  if (i_check(itr->GetSource()))
320  i_objects.push_back(itr->GetSource());
321 }
Check & i_check
Definition: GridNotifiers.h:223
uint32 i_mapTypeMask
Definition: GridNotifiers.h:220
Definition: GridDefines.h:76
std::list< WorldObject * > & i_objects
Definition: GridNotifiers.h:222
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

template<class Check >
void Trinity::WorldObjectListSearcher< Check >::Visit ( DynamicObjectMapType m)
325 {
327  return;
328 
329  for (DynamicObjectMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
330  if (i_check(itr->GetSource()))
331  i_objects.push_back(itr->GetSource());
332 }
Check & i_check
Definition: GridNotifiers.h:223
uint32 i_mapTypeMask
Definition: GridNotifiers.h:220
std::list< WorldObject * > & i_objects
Definition: GridNotifiers.h:222
Definition: GridDefines.h:75
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

template<class Check >
void Trinity::WorldObjectListSearcher< Check >::Visit ( AreaTriggerMapType m)
336 {
338  return;
339 
340  for (AreaTriggerMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
341  if (i_check(itr->GetSource()))
342  i_objects.push_back(itr->GetSource());
343 }
Definition: GridDefines.h:78
Check & i_check
Definition: GridNotifiers.h:223
uint32 i_mapTypeMask
Definition: GridNotifiers.h:220
std::list< WorldObject * > & i_objects
Definition: GridNotifiers.h:222
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

template<class Check>
template<class NOT_INTERESTED >
void Trinity::WorldObjectListSearcher< Check >::Visit ( GridRefManager< NOT_INTERESTED > &  )
inline
235 { }

Member Data Documentation

template<class Check>
WorldObject const* Trinity::WorldObjectListSearcher< Check >::_searcher
template<class Check>
Check& Trinity::WorldObjectListSearcher< Check >::i_check
template<class Check>
uint32 Trinity::WorldObjectListSearcher< Check >::i_mapTypeMask
template<class Check>
std::list<WorldObject*>& Trinity::WorldObjectListSearcher< Check >::i_objects

The documentation for this struct was generated from the following files: