diff options
Diffstat (limited to 'TAO/tao/PortableServer/POA_Policy_Set.inl')
-rw-r--r-- | TAO/tao/PortableServer/POA_Policy_Set.inl | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/POA_Policy_Set.inl b/TAO/tao/PortableServer/POA_Policy_Set.inl new file mode 100644 index 00000000000..4181baecf48 --- /dev/null +++ b/TAO/tao/PortableServer/POA_Policy_Set.inl @@ -0,0 +1,59 @@ +// -*- C++ -*- +// +// $Id$ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE CORBA::ULong +TAO_POA_Policy_Set::num_policies (void) const +{ + return this->impl_.num_policies (); +} + +ACE_INLINE CORBA::Policy * +TAO_POA_Policy_Set::get_policy_by_index (CORBA::ULong index) +{ + return this->impl_.get_policy_by_index (index); +} + +ACE_INLINE CORBA::Policy_ptr +TAO_POA_Policy_Set::get_cached_policy (TAO_Cached_Policy_Type type + ACE_ENV_ARG_DECL) +{ + return this->impl_.get_cached_policy (type + ACE_ENV_ARG_PARAMETER); +} + +ACE_INLINE void +TAO_POA_Policy_Set::merge_policies (const CORBA::PolicyList &policies + ACE_ENV_ARG_DECL) +{ + // Add the policies if they don't exist, override them if they do. + this->impl_.set_policy_overrides (policies, + CORBA::ADD_OVERRIDE + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; +} + +ACE_INLINE void +TAO_POA_Policy_Set::merge_policy (const CORBA::Policy_ptr policy + ACE_ENV_ARG_DECL) +{ + this->impl_.set_policy (policy ACE_ENV_ARG_PARAMETER); + ACE_CHECK; +} + +ACE_INLINE CORBA::Policy_ptr +TAO_POA_Policy_Set::get_policy (CORBA::PolicyType policy + ACE_ENV_ARG_DECL) +{ + return this->impl_.get_policy (policy ACE_ENV_ARG_PARAMETER); +} + +ACE_INLINE TAO_Policy_Set & +TAO_POA_Policy_Set::policies (void) +{ + return this->impl_; +} + +TAO_END_VERSIONED_NAMESPACE_DECL |