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

#include <GridNotifiers.h>

Public Member Functions

 GameObjectListSearcher (WorldObject const *searcher, std::list< GameObject * > &objects, Check &check)
 
void Visit (GameObjectMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefManager< NOT_INTERESTED > &)
 

Public Attributes

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

Constructor & Destructor Documentation

template<class Check>
Trinity::GameObjectListSearcher< Check >::GameObjectListSearcher ( WorldObject const searcher,
std::list< GameObject * > &  objects,
Check &  check 
)
inline
345  : _searcher(searcher), i_objects(objects), i_check(check) { }
std::list< GameObject * > & i_objects
Definition: GridNotifiers.h:341
WorldObject const * _searcher
Definition: GridNotifiers.h:340
Check & i_check
Definition: GridNotifiers.h:342
T check(T value)
Definition: format.h:305

Member Function Documentation

template<class Check >
void Trinity::GameObjectListSearcher< Check >::Visit ( GameObjectMapType m)
382 {
383  for (GameObjectMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
384  if (itr->GetSource()->IsInPhase(_searcher))
385  if (i_check(itr->GetSource()))
386  i_objects.push_back(itr->GetSource());
387 }
std::list< GameObject * > & i_objects
Definition: GridNotifiers.h:341
WorldObject const * _searcher
Definition: GridNotifiers.h:340
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
Check & i_check
Definition: GridNotifiers.h:342
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

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

Member Data Documentation

template<class Check>
WorldObject const* Trinity::GameObjectListSearcher< Check >::_searcher
template<class Check>
Check& Trinity::GameObjectListSearcher< Check >::i_check
template<class Check>
std::list<GameObject*>& Trinity::GameObjectListSearcher< Check >::i_objects

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