CallbackFunctor< T > Class Template Reference

Public Member Functions

FASP_MANAGER_API CallbackFunctor (T *obj, void(T::*fnct)(callback_event_e cb_event, const JobStats *, const FileStats *))
 
FASP_MANAGER_API CallbackFunctor (CallbackFunctor &functor)
 
FASP_MANAGER_API ~CallbackFunctor ()
 Destructs this FASP callback functor.
 
FASP_MANAGER_API FunctorClone ()
 
FASP_MANAGER_API void operator() (callback_event_e cb_event, const JobStats *j_stats, const FileStats *f_stats)
 
FASP_MANAGER_API bool CompareWith (const Functor *other)
 
- Public Member Functions inherited from Functor
virtual ~Functor ()
 Destructs this FASP functor.
 

Detailed Description

template<class T>
class Aspera::FaspManager::CallbackFunctor< T >

A class providing a functor for use in FASP management callbacks. It is required that the implementation of the callback function return quickly. Any time consuming tasks must be performed on a different thread.

Constructor & Destructor Documentation

FASP_MANAGER_API CallbackFunctor ( T *  obj,
void(T::*)(callback_event_e cb_event, const JobStats *, const FileStats *)  fnct 
)
inline

Constructs this FASP callback functor.

Parameters
objthe object used in the callback
fnctthe function pointer used in the callback
FASP_MANAGER_API CallbackFunctor ( CallbackFunctor< T > &  functor)
inline

Copy constructs this FASP callback functor.

Parameters
functorthe Fasp callback functor to be copy constructed

Member Function Documentation

FASP_MANAGER_API Functor* Clone ( )
inlinevirtual

Clones this FASP callback functor.

Returns
a clone of this FASP callback functor

Implements Functor.

FASP_MANAGER_API bool CompareWith ( const Functor other)
inlinevirtual

Compare this instance of Functor with the parameter

Parameters
otherinstance of function to compare with

Implements Functor.

FASP_MANAGER_API void operator() ( callback_event_e  cb_event,
const JobStats j_stats,
const FileStats f_stats 
)
inlinevirtual

Overloads the "()" operator (the function call operator) for this FASP callback functor.

Parameters
cb_eventthe event on which the callback is performed
j_statsthe FASP Job stats
f_statsthe current FASP Job file stats

Implements Functor.


Copyright © 2005 - 2016 Aspera, an IBM company. | asperasoft.com