Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tao / LF_Event_Binder.h
blobd4fc4730b294e4bdc2689e9a8e9db8f1d7591e2d
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file LF_Event_Binder.h
7 * @author Carlos O'Ryan <coryan@uci.edu>
8 */
9 //=============================================================================
11 #ifndef TAO_LF_EVENT_BINDER_H
12 #define TAO_LF_EVENT_BINDER_H
14 #include /**/ "ace/pre.h"
16 #include "tao/LF_Event.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
24 class TAO_LF_Follower;
26 /**
27 * @brief Implement an auto_ptr-like class for the TAO_LF_Followers
28 * allocated via a TAO_Leader_Follower set.
30 * The Leader/Follower set is a factory for TAO_LF_Follower objects
32 class TAO_Export TAO_LF_Event_Binder
34 public:
35 /// Constructor
36 TAO_LF_Event_Binder (TAO_LF_Event *event, TAO_LF_Follower *folloer);
38 /// Destructor
39 ~TAO_LF_Event_Binder ();
41 private:
42 void operator= (const TAO_LF_Event_Binder &);
43 TAO_LF_Event_Binder (const TAO_LF_Event_Binder &);
45 private:
46 /// Keep a reference to the leader follower
47 TAO_LF_Event * const event_;
48 TAO_LF_Follower * const follower_;
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #if defined (__ACE_INLINE__)
54 # include "tao/LF_Event_Binder.inl"
55 #endif /* __ACE_INLINE__ */
57 #include /**/ "ace/post.h"
59 #endif /* TAO_LF_EVENT_BINDER_H */