/usr/include/ace/Functor_T.cpp is in libace-dev 6.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | // $Id: Functor_T.cpp 80826 2008-03-04 14:51:23Z wotte $
#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 */
|