Go to the documentation of this file.00001
00002
00003 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00004
00005 namespace ACE
00006 {
00007 namespace Monitor_Control
00008 {
00009 ACE_INLINE
00010 const char*
00011 Monitor_Base::name (void) const
00012 {
00013 return this->name_.c_str ();
00014 }
00015
00016 ACE_INLINE
00017 void
00018 Monitor_Base::name (const char* new_name)
00019 {
00020 this->name_ = new_name;
00021 }
00022
00023 ACE_INLINE
00024 Monitor_Base::CONSTRAINTS&
00025 Monitor_Base::constraints (void)
00026 {
00027 return this->constraints_;
00028 }
00029
00030 ACE_INLINE
00031 void
00032 Monitor_Base::add_ref (void)
00033 {
00034 (void) this->increment ();
00035 }
00036
00037 ACE_INLINE
00038 void
00039 Monitor_Base::remove_ref (void)
00040 {
00041 long const new_count = this->decrement ();
00042
00043 if (new_count == 0)
00044 {
00045 delete this;
00046 }
00047 }
00048
00049 ACE_INLINE
00050 Monitor_Control_Types::Information_Type
00051 Monitor_Base::type (void) const
00052 {
00053 return this->data_.type_;
00054 }
00055 }
00056 }
00057
00058 ACE_END_VERSIONED_NAMESPACE_DECL
00059