mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 00:08:01 +00:00
Directory Structure [step 1]: moving files
working on #672 NOTE: This commit can't be compiled!!
This commit is contained in:
47
deps/acelite/ace/Functor_T.cpp
vendored
Normal file
47
deps/acelite/ace/Functor_T.cpp
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
#ifndef ACE_FUNCTOR_T_CPP
|
||||
#define ACE_FUNCTOR_T_CPP
|
||||
|
||||
#include "ace/Functor_T.h"
|
||||
|
||||
#if !defined (ACE_LACKS_PRAGMA_ONCE)
|
||||
# pragma once
|
||||
#endif /* ACE_LACKS_PRAGMA_ONCE */
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
#include "ace/Functor_T.inl"
|
||||
#endif /* __ACE_INLINE__ */
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
ACE_ALLOC_HOOK_DEFINE(ACE_Command_Callback)
|
||||
|
||||
///////////////////////////////////
|
||||
// GOF Command Pattern Templates //
|
||||
///////////////////////////////////
|
||||
|
||||
// Constructor.
|
||||
|
||||
template <class RECEIVER, class ACTION>
|
||||
ACE_Command_Callback<RECEIVER, ACTION>::ACE_Command_Callback (RECEIVER &recvr,
|
||||
ACTION action)
|
||||
: receiver_ (recvr),
|
||||
action_ (action)
|
||||
{
|
||||
}
|
||||
|
||||
template <class RECEIVER, class ACTION>
|
||||
ACE_Command_Callback<RECEIVER, ACTION>::~ACE_Command_Callback (void)
|
||||
{
|
||||
}
|
||||
|
||||
// Invokes an operation.
|
||||
|
||||
template <class RECEIVER, class ACTION> int
|
||||
ACE_Command_Callback<RECEIVER, ACTION>::execute (void *arg)
|
||||
{
|
||||
return (receiver_.*action_) (arg);
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
#endif /* ACE_FUNCTOR_T_CPP */
|
||||
Reference in New Issue
Block a user