1 #ifndef FUNCTOR_H_INCLUDED
\r
2 #define FUNCTOR_H_INCLUDED
\r
4 #include "mmanager.h"
\r
6 class Functor : public IMMObject
\r
9 virtual int operator ()()=0;
\r
13 class ObjFunctor : public Functor
\r
17 typedef int (T::*funcType)();
\r
22 ObjFunctor(T *o, funcType f)
\r
26 { return (obj->*func)(); }
\r
30 class MMObjFunctor : public Functor
\r
34 typedef int (T::*funcType)();
\r
39 MMObjFunctor(T *o, funcType f)
\r
43 { return (obj->*func)(); }
\r