summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/POA_Policy_Set.i
blob: 94d39143949ecc75640d7bb679768de4217927c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// $Id$

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)
{
  return this->impl_.get_cached_policy (type);
}

ACE_INLINE void
TAO_POA_Policy_Set::merge_policies (const CORBA::PolicyList &policies,
                                    CORBA::Environment &ACE_TRY_ENV)
{
  // Add the policies if they don't exist, override them if they do.
  this->impl_.set_policy_overrides (policies,
                                    CORBA::ADD_OVERRIDE,
                                    ACE_TRY_ENV);
  ACE_CHECK;
}

ACE_INLINE void
TAO_POA_Policy_Set::merge_policy (const CORBA::Policy_ptr policy,
                                  CORBA::Environment &ACE_TRY_ENV)
{
  this->impl_.set_policy (policy, ACE_TRY_ENV);
  ACE_CHECK;
}

ACE_INLINE TAO_Policy_Set &
TAO_POA_Policy_Set::policies (void)
{
  return this->impl_;
}