summaryrefslogtreecommitdiff
path: root/TAO/tao/PICurrent.inl
blob: 7e25c8d110efacd2cc24fe98c643afd0fa269c54 (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
45
46
47
48
49
50
51
// -*- C++ -*-
//
// $Id$

ACE_INLINE PortableInterceptor::SlotId
TAO_PICurrent::slot_count (void) const
{
  return this->slot_count_;
}

ACE_INLINE void
TAO_PICurrent::check_validity (const PortableInterceptor::SlotId &id
                               ACE_ENV_ARG_DECL)
{
  // No need to acquire a lock for this check.  At this point, these
  // attributes are read only.
  if (id >= this->slot_count_)
    ACE_THROW (PortableInterceptor::InvalidSlot ());
}

// ------------------------------------------------------------------

ACE_INLINE TAO_PICurrent_Impl *
TAO_PICurrent_Impl::pi_peer (void)
{
  return this->pi_peer_;
}

ACE_INLINE void
TAO_PICurrent_Impl::pi_peer (TAO_PICurrent_Impl *peer)
{
  this->pi_peer_ = peer;
}

ACE_INLINE TAO_PICurrent_Impl::Table &
TAO_PICurrent_Impl::slot_table (void)
{
  return this->slot_table_;
}

ACE_INLINE void
TAO_PICurrent_Impl::dirty (CORBA::Boolean d)
{
  this->dirty_ = d;
}

ACE_INLINE CORBA::Boolean
TAO_PICurrent_Impl::dirty (void) const
{
  return this->dirty_;
}