[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / Functor_T.cpp
blob213b501aac186381fe7dc26f503b29662ddcef84
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)
9 # 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 ///////////////////////////////////
24 // Constructor.
26 template <class RECEIVER, class ACTION>
27 ACE_Command_Callback<RECEIVER, ACTION>::ACE_Command_Callback (RECEIVER &recvr,
28 ACTION action)
29 : receiver_ (recvr),
30 action_ (action)
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 */