12 #ifdef PPRCESS_EVENT_PERFORMANCE_MEASURE 14 #endif // PPRCESS_EVENT_PERFORMANCE_MEASURE 23 #ifdef PPRCESS_EVENT_PERFORMANCE_MEASURE 26 #endif // PPRCESS_EVENT_PERFORMANCE_MEASURE 33 virtual void Call(EventType& event) = 0;
40 typedef void (ClassType::*Member)(EventType&);
44 cbEventFunctor(ClassType* this_, Member member) : m_pThis(this_), m_pMember(member) {}
46 void*
GetThis()
override {
return m_pThis; }
49 void Call(EventType& event)
override {
if (m_pThis) (m_pThis->*m_pMember)(event); }
51 #ifdef PPRCESS_EVENT_PERFORMANCE_MEASURE 53 virtual const char*
GetTypeName(){
return typeid(m_pMember).name();}
54 #endif // PPRCESS_EVENT_PERFORMANCE_MEASURE 57 #endif // CB_FUNCTOR_H
Base abstract functor class.
cbEventFunctor(ClassType *this_, Member member)
void Call(EventType &event) override
const SQChar * GetTypeName(const SQObjectPtr &obj1)
void * GetThis() override
Base abstract event functor class.
virtual void * GetThis()=0
cbEventFunctor(const cbEventFunctor< ClassType, EventType > &rhs)