1 // $Id: Functor_T.cpp 80826 2008-03-04 14:51:23Z wotte $
3 #ifndef ACE_FUNCTOR_T_CPP
4 #define ACE_FUNCTOR_T_CPP
6 #include "ace/Functor_T.h"
8 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 #endif /* ACE_LACKS_PRAGMA_ONCE */
12 #if !defined (__ACE_INLINE__)
13 #include "ace/Functor_T.inl"
14 #endif /* __ACE_INLINE__ */
16 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
18 ACE_ALLOC_HOOK_DEFINE(ACE_Command_Callback
)
20 ///////////////////////////////////
21 // GOF Command Pattern Templates //
22 ///////////////////////////////////
26 template <class RECEIVER
, class ACTION
>
27 ACE_Command_Callback
<RECEIVER
, ACTION
>::ACE_Command_Callback (RECEIVER
&recvr
,
34 template <class RECEIVER
, class ACTION
>
35 ACE_Command_Callback
<RECEIVER
, ACTION
>::~ACE_Command_Callback (void)
39 // Invokes an operation.
41 template <class RECEIVER
, class ACTION
> int
42 ACE_Command_Callback
<RECEIVER
, ACTION
>::execute (void *arg
)
44 return (receiver_
.*action_
) (arg
);
47 ACE_END_VERSIONED_NAMESPACE_DECL
49 #endif /* ACE_FUNCTOR_T_CPP */