summaryrefslogtreecommitdiff
path: root/ACE/TAO/tao/PortableServer/Active_Policy_Strategies.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/tao/PortableServer/Active_Policy_Strategies.inl')
-rw-r--r--ACE/TAO/tao/PortableServer/Active_Policy_Strategies.inl88
1 files changed, 88 insertions, 0 deletions
diff --git a/ACE/TAO/tao/PortableServer/Active_Policy_Strategies.inl b/ACE/TAO/tao/PortableServer/Active_Policy_Strategies.inl
new file mode 100644
index 00000000000..5050cfe8cbe
--- /dev/null
+++ b/ACE/TAO/tao/PortableServer/Active_Policy_Strategies.inl
@@ -0,0 +1,88 @@
+// -*- C++ -*-
+//
+// $Id$
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace TAO
+{
+ namespace Portable_Server
+ {
+ ACE_INLINE
+ ThreadStrategy*
+ Active_Policy_Strategies::thread_strategy (void) const
+ {
+ return this->thread_strategy_;
+ }
+
+ ACE_INLINE
+ RequestProcessingStrategy*
+ Active_Policy_Strategies::request_processing_strategy (void) const
+ {
+ return this->request_processing_strategy_;
+ }
+
+ ACE_INLINE
+ IdAssignmentStrategy *
+ Active_Policy_Strategies::id_assignment_strategy (void) const
+ {
+ return this->id_assignment_strategy_;
+ }
+
+ ACE_INLINE
+ IdUniquenessStrategy *
+ Active_Policy_Strategies::id_uniqueness_strategy (void) const
+ {
+ return this->id_uniqueness_strategy_;
+ }
+
+ ACE_INLINE
+ LifespanStrategy*
+ Active_Policy_Strategies::lifespan_strategy (void) const
+ {
+ return this->lifespan_strategy_;
+ }
+
+ ACE_INLINE
+ ImplicitActivationStrategy*
+ Active_Policy_Strategies::implicit_activation_strategy (void) const
+ {
+ return this->implicit_activation_strategy_;
+ }
+
+ ACE_INLINE
+ ServantRetentionStrategy*
+ Active_Policy_Strategies::servant_retention_strategy (void) const
+ {
+ return this->servant_retention_strategy_;
+ }
+
+ ACE_INLINE
+ Active_Policy_Strategies_Cleanup_Guard
+ ::Active_Policy_Strategies_Cleanup_Guard (Active_Policy_Strategies *p)
+ : ptr_ (p)
+ {
+ }
+
+ ACE_INLINE
+ Active_Policy_Strategies_Cleanup_Guard
+ ::~Active_Policy_Strategies_Cleanup_Guard (void)
+ {
+ if (this->ptr_)
+ {
+ this->ptr_->cleanup ();
+ }
+ }
+
+ ACE_INLINE
+ Active_Policy_Strategies *
+ Active_Policy_Strategies_Cleanup_Guard::_retn (void)
+ {
+ Active_Policy_Strategies *temp = this->ptr_;
+ this->ptr_ = 0;
+ return temp;
+ }
+ }
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL