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

#include <GridNotifiers.h>

Public Member Functions

 PlayerWorker (WorldObject const *searcher, Do &_do)
 
void Visit (PlayerMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefManager< NOT_INTERESTED > &)
 

Public Attributes

WorldObject const_searcher
 
Do & i_do
 

Constructor & Destructor Documentation

template<class Do >
Trinity::PlayerWorker< Do >::PlayerWorker ( WorldObject const searcher,
Do &  _do 
)
inline
547  : _searcher(searcher), i_do(_do) { }
Do & i_do
Definition: GridNotifiers.h:544
WorldObject const * _searcher
Definition: GridNotifiers.h:543

Member Function Documentation

template<class Do >
void Trinity::PlayerWorker< Do >::Visit ( PlayerMapType m)
inline
550  {
551  for (PlayerMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
552  if (itr->GetSource()->IsInPhase(_searcher))
553  i_do(itr->GetSource());
554  }
Do & i_do
Definition: GridNotifiers.h:544
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37
WorldObject const * _searcher
Definition: GridNotifiers.h:543

+ Here is the call graph for this function:

template<class Do >
template<class NOT_INTERESTED >
void Trinity::PlayerWorker< Do >::Visit ( GridRefManager< NOT_INTERESTED > &  )
inline
556 { }

Member Data Documentation

template<class Do >
WorldObject const* Trinity::PlayerWorker< Do >::_searcher
template<class Do >
Do& Trinity::PlayerWorker< Do >::i_do

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