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

#include <GridNotifiers.h>

Public Member Functions

 CreatureListSearcher (WorldObject const *searcher, std::list< Creature * > &objects, Check &check)
 
void Visit (CreatureMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefManager< NOT_INTERESTED > &)
 

Public Attributes

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

Constructor & Destructor Documentation

template<class Check>
Trinity::CreatureListSearcher< Check >::CreatureListSearcher ( WorldObject const searcher,
std::list< Creature * > &  objects,
Check &  check 
)
inline
466  : _searcher(searcher), i_objects(objects), i_check(check) { }
WorldObject const * _searcher
Definition: GridNotifiers.h:461
Check & i_check
Definition: GridNotifiers.h:463
T check(T value)
Definition: format.h:305
std::list< Creature * > & i_objects
Definition: GridNotifiers.h:462

Member Function Documentation

template<class Check >
void Trinity::CreatureListSearcher< Check >::Visit ( CreatureMapType m)
512 {
513  for (CreatureMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
514  if (itr->GetSource()->IsInPhase(_searcher))
515  if (i_check(itr->GetSource()))
516  i_objects.push_back(itr->GetSource());
517 }
WorldObject const * _searcher
Definition: GridNotifiers.h:461
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37
Check & i_check
Definition: GridNotifiers.h:463
std::list< Creature * > & i_objects
Definition: GridNotifiers.h:462

+ Here is the call graph for this function:

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

Member Data Documentation

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

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