7 #ifndef __FASP_MANAGER_FUNCTOR_H__
8 #define __FASP_MANAGER_FUNCTOR_H__
76 m_obj_ptr = functor.m_obj_ptr;
77 m_fnct_ptr = functor.m_fnct_ptr;
96 { (m_obj_ptr->*m_fnct_ptr)(cb_event, j_stats, f_stats ); };
100 if (
const CallbackFunctor* cbfOther = dynamic_cast<const CallbackFunctor*>(other)) {
101 return (m_obj_ptr == cbfOther->m_obj_ptr) && (m_fnct_ptr == cbfOther->m_fnct_ptr);
virtual bool CompareWith(const Functor *other)=0
A structure of FASP Job individual file level statistics.
Definition: FaspManagerTypes.h:444
A class providing an abstract base for FASP functors.
Definition: FaspManagerFunctor.h:23
A structure of FASP Job job level statistics.
Definition: FaspManagerTypes.h:358
virtual ~Functor()
Destructs this FASP functor.
Definition: FaspManagerFunctor.h:28
virtual Functor * Clone()=0
FASP_MANAGER_API ~CallbackFunctor()
Destructs this FASP callback functor.
Definition: FaspManagerFunctor.h:81
FASP_MANAGER_API Functor * Clone()
Definition: FaspManagerFunctor.h:86
FASP_MANAGER_API CallbackFunctor(T *obj, void(T::*fnct)(callback_event_e cb_event, const JobStats *, const FileStats *))
Definition: FaspManagerFunctor.h:65
FASP_MANAGER_API bool CompareWith(const Functor *other)
Definition: FaspManagerFunctor.h:98
virtual void operator()(callback_event_e cb_event, const JobStats *j_stats, const FileStats *f_stats)=0
callback_event_e
An enumeration of FASP Manager callback events.
Definition: FaspManagerTypes.h:207
C++ namespace for Aspera, Inc.
Definition: Environment.h:10
FASP_MANAGER_API CallbackFunctor(CallbackFunctor &functor)
Definition: FaspManagerFunctor.h:73
FASP_MANAGER_API void operator()(callback_event_e cb_event, const JobStats *j_stats, const FileStats *f_stats)
Definition: FaspManagerFunctor.h:95
Definition: FaspManagerFunctor.h:51