[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / Monitor_Control_Types.cpp
blob782227c5684f4192599157d0b247daba49cb6ab3
1 // $Id: Monitor_Control_Types.cpp 82328 2008-07-15 17:20:17Z parsons $
3 #include "ace/Monitor_Control_Types.h"
5 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
7 #include "ace/Monitor_Control_Action.h"
9 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
11 namespace ACE
13 namespace Monitor_Control
15 Monitor_Control_Types::Data::Data (
16 Monitor_Control_Types::Information_Type type)
17 : timestamp_ (ACE_Time_Value::zero)
18 , value_ (0.0)
19 , type_ (type)
20 , index_ (0UL)
21 , minimum_set_ (false)
22 , minimum_ (0.0)
23 , maximum_ (0.0)
24 , sum_ (0.0)
25 , sum_of_squares_ (0.0)
26 , last_ (0.0)
29 //=============================================================
31 Monitor_Control_Types::Constraint::Constraint (void)
32 : control_action (0)
35 Monitor_Control_Types::Constraint::Constraint (const Constraint& rhs)
36 : expr (rhs.expr),
37 control_action (rhs.control_action)
39 if (control_action != 0)
41 control_action->add_ref ();
45 Monitor_Control_Types::Constraint::~Constraint (void)
47 if (this->control_action != 0)
49 this->control_action->remove_ref ();
53 Monitor_Control_Types::Constraint&
54 Monitor_Control_Types::Constraint::operator= (const Constraint& rhs)
56 if (this->control_action != 0)
58 this->control_action->remove_ref ();
61 this->expr = rhs.expr;
62 this->control_action = rhs.control_action;
64 if (this->control_action != 0)
66 this->control_action->add_ref ();
69 return *this;
74 ACE_END_VERSIONED_NAMESPACE_DECL
76 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */