ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ACE::Monitor_Control::Size_Monitor Class Reference

Base class from which ACE monitors of size are derived. More...

#include <Monitor_Size.h>

Inheritance diagram for ACE::Monitor_Control::Size_Monitor:
Inheritance graph
[legend]
Collaboration diagram for ACE::Monitor_Control::Size_Monitor:
Collaboration graph
[legend]

Public Member Functions

 Size_Monitor ()
 
 Size_Monitor (const char *name)
 
 ~Size_Monitor () override=default
 
void update () override
 
void clear () override
 Reset function.
 
- Public Member Functions inherited from ACE::Monitor_Control::Monitor_Base
 Monitor_Base (const char *name, Monitor_Control_Types::Information_Type type)
 
virtual ~Monitor_Base ()
 
virtual void receive (double data)
 Updates the monitor's data if it is a numeric floating point.
 
virtual void receive (size_t data)
 Updates the monitor's data if it is an integer size.
 
virtual void receive (const Monitor_Control_Types::NameList &data)
 Updates the monitor's data if it is a string type.
 
long add_constraint (const char *expression, Control_Action *action=0)
 Add a constraint, returns a unique constraint id.
 
Control_Actionremove_constraint (const long constraint_id)
 
CONSTRAINTSconstraints ()
 Get all constraints.
 
void retrieve (Monitor_Control_Types::Data &data) const
 Data accessors.
 
void retrieve_and_clear (Monitor_Control_Types::Data &data)
 
void add_to_registry (const ACE_Time_Value &time=ACE_Time_Value::zero)
 Common to all monitors.
 
void remove_from_registry ()
 
const charname () const
 
void name (const char *new_name)
 
void add_ref ()
 
void remove_ref ()
 
double average () const
 Calculate the average of the accumulated samples.
 
double sum_of_squares () const
 Calculate the sum of the squares of the samples.
 
size_t count () const
 Returns the number of samples.
 
double minimum_sample () const
 Returns the minimum sample value.
 
double maximum_sample () const
 Returns the maximum sample value.
 
double last_sample () const
 Returns the most recent sample value.
 
Monitor_Control_Types::Information_Type type () const
 Return the type of this statistic.
 
Monitor_Control_Types::NameList get_list () const
 Return the list or error msg if wrong type.
 

Additional Inherited Members

- Public Types inherited from ACE::Monitor_Control::Monitor_Base
typedef Monitor_Control_Types::ConstraintList CONSTRAINTS
 
typedef CONSTRAINTS::const_iterator CONSTRAINT_ITERATOR
 
- Protected Member Functions inherited from ACE::Monitor_Control::Monitor_Base
virtual void clear_i ()
 
- Protected Attributes inherited from ACE::Monitor_Control::Monitor_Base
Monitor_Control_Types::Data data_
 
ACE_SYNCH_MUTEX mutex_
 
CONSTRAINTS constraints_
 

Detailed Description

Base class from which ACE monitors of size are derived.

Constructor & Destructor Documentation

◆ Size_Monitor() [1/2]

ACE::Monitor_Control::Size_Monitor::Size_Monitor ( )

◆ Size_Monitor() [2/2]

ACE::Monitor_Control::Size_Monitor::Size_Monitor ( const char * name)

◆ ~Size_Monitor()

ACE::Monitor_Control::Size_Monitor::~Size_Monitor ( )
overridedefault

Member Function Documentation

◆ clear()

void ACE::Monitor_Control::Size_Monitor::clear ( )
overridevirtual

Reset function.

Reimplemented from ACE::Monitor_Control::Monitor_Base.

◆ update()

void ACE::Monitor_Control::Size_Monitor::update ( )
overridevirtual

Implemented by the most-derived class. Does the actual work of fetching the monitored value.

Reimplemented from ACE::Monitor_Control::Monitor_Base.


The documentation for this class was generated from the following files: