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

#include <GridNotifiers.h>

Public Member Functions

 GameObjectWorker (WorldObject const *searcher, Functor &func)
 
void Visit (GameObjectMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefManager< NOT_INTERESTED > &)
 

Private Attributes

Functor & _func
 
WorldObject const_searcher
 

Constructor & Destructor Documentation

template<class Functor>
Trinity::GameObjectWorker< Functor >::GameObjectWorker ( WorldObject const searcher,
Functor &  func 
)
inline
356  : _func(func), _searcher(searcher) { }
Functor & _func
Definition: GridNotifiers.h:368
WorldObject const * _searcher
Definition: GridNotifiers.h:369

Member Function Documentation

template<class Functor>
void Trinity::GameObjectWorker< Functor >::Visit ( GameObjectMapType m)
inline
359  {
360  for (GameObjectMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
361  if (itr->GetSource()->IsInPhase(_searcher))
362  _func(itr->GetSource());
363  }
Functor & _func
Definition: GridNotifiers.h:368
WorldObject const * _searcher
Definition: GridNotifiers.h:369
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 Functor>
template<class NOT_INTERESTED >
void Trinity::GameObjectWorker< Functor >::Visit ( GridRefManager< NOT_INTERESTED > &  )
inline
365 { }

Member Data Documentation

template<class Functor>
Functor& Trinity::GameObjectWorker< Functor >::_func
private
template<class Functor>
WorldObject const* Trinity::GameObjectWorker< Functor >::_searcher
private

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