Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / tao / Policy_Set.inl
blob8a1474a7866d8a01fba93f156c50be6f63ea36bb
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE CORBA::Boolean
5 TAO_Policy_Set::compatible_scope (TAO_Policy_Scope policy_scope) const
7   return
8     ((static_cast<unsigned int> (policy_scope)
9       & static_cast<unsigned int> (this->scope_)) > 0);
12 ACE_INLINE CORBA::Policy *
13 TAO_Policy_Set::get_policy_by_index (CORBA::ULong index) const
15   return CORBA::Policy::_duplicate (this->policy_list_[index]);
18 ACE_INLINE CORBA::ULong
19 TAO_Policy_Set::num_policies () const
21   return this->policy_list_.length();
24 TAO_END_VERSIONED_NAMESPACE_DECL