summaryrefslogtreecommitdiff
path: root/ACE/ace/Monitor_Base.inl
blob: f5dc833869684d3e1d5fe5b7f43adb2283b3ea57 (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
52
53
54
55
56
57
ACE_BEGIN_VERSIONED_NAMESPACE_DECL

namespace ACE
{
  namespace Monitor_Control
  {
    ACE_INLINE
    const char*
    Monitor_Base::name () const
    {
      return this->name_.c_str ();
    }

    ACE_INLINE
    void
    Monitor_Base::name (const char* new_name)
    {
      this->name_ = new_name;
    }

    ACE_INLINE
    Monitor_Base::CONSTRAINTS&
    Monitor_Base::constraints ()
    {
      return this->constraints_;
    }

    ACE_INLINE
    void
    Monitor_Base::add_ref ()
    {
      (void) this->increment ();
    }

    ACE_INLINE
    void
    Monitor_Base::remove_ref ()
    {
      long const new_count = this->decrement ();

      if (new_count == 0)
        {
          delete this;
        }
    }

    ACE_INLINE
    Monitor_Control_Types::Information_Type
    Monitor_Base::type () const
    {
      return this->data_.type_;
    }
  }
}

ACE_END_VERSIONED_NAMESPACE_DECL