#include <Monitor_Control_Types.h>
Collaboration diagram for ACE::Monitor_Control::Monitor_Control_Types::Constraint:
Public Member Functions | |
Constraint (void) | |
~Constraint (void) | |
Constraint (const Constraint &rhs) | |
Constraint & | operator= (const Constraint &rhs) |
Public Attributes | |
ACE_CString | expr |
Control_Action * | control_action |
Definition at line 54 of file Monitor_Control_Types.h.
ACE::Monitor_Control::Monitor_Control_Types::Constraint::Constraint | ( | void | ) |
ACE::Monitor_Control::Monitor_Control_Types::Constraint::~Constraint | ( | void | ) |
Definition at line 36 of file Monitor_Control_Types.cpp.
References control_action, and ACE::Monitor_Control::Control_Action::remove_ref().
00037 { 00038 if (this->control_action != 0) 00039 { 00040 this->control_action->remove_ref (); 00041 } 00042 }
ACE::Monitor_Control::Monitor_Control_Types::Constraint::Constraint | ( | const Constraint & | rhs | ) |
Implemented explicitly so reference counting of control actions can be managed.
Definition at line 26 of file Monitor_Control_Types.cpp.
References ACE::Monitor_Control::Control_Action::add_ref(), and control_action.
00027 : expr (rhs.expr), 00028 control_action (rhs.control_action) 00029 { 00030 if (control_action != 0) 00031 { 00032 control_action->add_ref (); 00033 } 00034 }
Monitor_Control_Types::Constraint & ACE::Monitor_Control::Monitor_Control_Types::Constraint::operator= | ( | const Constraint & | rhs | ) |
Definition at line 45 of file Monitor_Control_Types.cpp.
References ACE::Monitor_Control::Control_Action::add_ref(), control_action, expr, and ACE::Monitor_Control::Control_Action::remove_ref().
00046 { 00047 if (this->control_action != 0) 00048 { 00049 this->control_action->remove_ref (); 00050 } 00051 00052 this->expr = rhs.expr; 00053 this->control_action = rhs.control_action; 00054 00055 if (this->control_action != 0) 00056 { 00057 this->control_action->add_ref (); 00058 } 00059 00060 return *this; 00061 }
Definition at line 65 of file Monitor_Control_Types.h.
Referenced by Constraint(), operator=(), and ~Constraint().