Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / tao / PortableServer / Active_Policy_Strategies.inl
blob78f1b33b63eb4d7d091bebf88b629124999b49d5
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 namespace TAO
6   namespace Portable_Server
7   {
8     ACE_INLINE
9     ThreadStrategy*
10     Active_Policy_Strategies::thread_strategy () const
11     {
12       return this->thread_strategy_.get ();
13     }
15     ACE_INLINE
16     RequestProcessingStrategy*
17     Active_Policy_Strategies::request_processing_strategy () const
18     {
19       return this->request_processing_strategy_.get ();
20     }
22     ACE_INLINE
23     IdAssignmentStrategy *
24     Active_Policy_Strategies::id_assignment_strategy () const
25     {
26       return this->id_assignment_strategy_. get ();
27     }
29     ACE_INLINE
30     IdUniquenessStrategy *
31     Active_Policy_Strategies::id_uniqueness_strategy () const
32     {
33       return this->id_uniqueness_strategy_.get ();
34     }
36     ACE_INLINE
37     LifespanStrategy*
38     Active_Policy_Strategies::lifespan_strategy () const
39     {
40       return this->lifespan_strategy_. get();
41     }
43     ACE_INLINE
44     ImplicitActivationStrategy*
45     Active_Policy_Strategies::implicit_activation_strategy () const
46     {
47       return this->implicit_activation_strategy_.get ();
48     }
50     ACE_INLINE
51     ServantRetentionStrategy*
52     Active_Policy_Strategies::servant_retention_strategy () const
53     {
54       return this->servant_retention_strategy_.get ();
55     }
57     ACE_INLINE
58     Active_Policy_Strategies_Cleanup_Guard
59       ::Active_Policy_Strategies_Cleanup_Guard (Active_Policy_Strategies *p)
60       : ptr_ (p)
61     {
62     }
64     ACE_INLINE
65     Active_Policy_Strategies_Cleanup_Guard::~Active_Policy_Strategies_Cleanup_Guard ()
66     {
67       if (this->ptr_)
68         {
69           this->ptr_->cleanup ();
70         }
71     }
73     ACE_INLINE
74     Active_Policy_Strategies *
75     Active_Policy_Strategies_Cleanup_Guard::_retn ()
76     {
77       Active_Policy_Strategies *temp = this->ptr_;
78       this->ptr_ = nullptr;
79       return temp;
80     }
81   }
84 TAO_END_VERSIONED_NAMESPACE_DECL