ACE::Monitor_Control::Monitor_Control_Types::Constraint Struct Reference

Bundles the constrain string with its associated trigger action. More...

#include <Monitor_Control_Types.h>

Collaboration diagram for ACE::Monitor_Control::Monitor_Control_Types::Constraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Constraint (void)
 ~Constraint (void)
 Constraint (const Constraint &rhs)
Constraintoperator= (const Constraint &rhs)

Public Attributes

ACE_CString expr
Control_Actioncontrol_action

Detailed Description

Bundles the constrain string with its associated trigger action.

Definition at line 54 of file Monitor_Control_Types.h.


Constructor & Destructor Documentation

ACE::Monitor_Control::Monitor_Control_Types::Constraint::Constraint ( void   ) 

Definition at line 22 of file Monitor_Control_Types.cpp.

00023       : control_action (0)
00024     {}

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     }


Member Function Documentation

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     }


Member Data Documentation

Control_Action* ACE::Monitor_Control::Monitor_Control_Types::Constraint::control_action

Definition at line 65 of file Monitor_Control_Types.h.

Referenced by Constraint(), operator=(), and ~Constraint().

ACE_CString ACE::Monitor_Control::Monitor_Control_Types::Constraint::expr

Definition at line 64 of file Monitor_Control_Types.h.

Referenced by operator=().


The documentation for this struct was generated from the following files:
Generated on Tue Feb 2 17:36:04 2010 for ACE by  doxygen 1.4.7