00001 // -*- C++ -*- 00002 // 00003 // POA_Policy_Set.i,v 1.7 2005/11/04 09:26:55 ossama Exp 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE CORBA::ULong 00008 TAO_POA_Policy_Set::num_policies (void) const 00009 { 00010 return this->impl_.num_policies (); 00011 } 00012 00013 ACE_INLINE CORBA::Policy * 00014 TAO_POA_Policy_Set::get_policy_by_index (CORBA::ULong index) 00015 { 00016 return this->impl_.get_policy_by_index (index); 00017 } 00018 00019 ACE_INLINE CORBA::Policy_ptr 00020 TAO_POA_Policy_Set::get_cached_policy (TAO_Cached_Policy_Type type 00021 ACE_ENV_ARG_DECL) 00022 { 00023 return this->impl_.get_cached_policy (type 00024 ACE_ENV_ARG_PARAMETER); 00025 } 00026 00027 ACE_INLINE void 00028 TAO_POA_Policy_Set::merge_policies (const CORBA::PolicyList &policies 00029 ACE_ENV_ARG_DECL) 00030 { 00031 // Add the policies if they don't exist, override them if they do. 00032 this->impl_.set_policy_overrides (policies, 00033 CORBA::ADD_OVERRIDE 00034 ACE_ENV_ARG_PARAMETER); 00035 ACE_CHECK; 00036 } 00037 00038 ACE_INLINE void 00039 TAO_POA_Policy_Set::merge_policy (const CORBA::Policy_ptr policy 00040 ACE_ENV_ARG_DECL) 00041 { 00042 this->impl_.set_policy (policy ACE_ENV_ARG_PARAMETER); 00043 ACE_CHECK; 00044 } 00045 00046 ACE_INLINE CORBA::Policy_ptr 00047 TAO_POA_Policy_Set::get_policy (CORBA::PolicyType policy 00048 ACE_ENV_ARG_DECL) 00049 { 00050 return this->impl_.get_policy (policy ACE_ENV_ARG_PARAMETER); 00051 } 00052 00053 ACE_INLINE TAO_Policy_Set & 00054 TAO_POA_Policy_Set::policies (void) 00055 { 00056 return this->impl_; 00057 } 00058 00059 TAO_END_VERSIONED_NAMESPACE_DECL