Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / ACE / ace / Auto_Functor.cpp
blob7310d78d349700364dc61676057696ff84590abc
1 #ifndef ACE_AUTO_FUNCTOR_CPP
2 #define ACE_AUTO_FUNCTOR_CPP
4 #include "ace/Auto_Functor.h"
6 #if !defined(__ACE_INLINE__)
7 # include "ace/Auto_Functor.inl"
8 #endif /* __ACE_INLINE__ */
10 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
12 template<typename X, typename Functor>
13 ACE_Utils::Auto_Functor<X,Functor>::~Auto_Functor()
15 reset(0);
18 template<typename X, typename Functor> void
19 ACE_Utils::Auto_Functor<X,Functor>::reset(X * p)
21 if(p_ != 0)
23 f_(p_);
25 p_ = p;
28 template<typename X, typename Functor>void
29 ACE_Utils::Auto_Functor<X,Functor>::reset(X * p, Functor f)
31 reset(p);
32 f_ = f;
35 ACE_END_VERSIONED_NAMESPACE_DECL
37 #endif /*ACE_AUTO_FUNCTOR_CPP*/