NAME
ACE_Timer_Node_T - Maintains the state associated with a Timer entry.
SYNOPSIS
#include <ace/Timer_Queue_T.h>
template<class TYPE>
class ACE_Timer_Node_T
{
public:
ACE_Timer_Node_T (void);
~ACE_Timer_Node_T (void);
void set (
const TYPE &type,
const void *a,
const ACE_Time_Value &t,
const ACE_Time_Value &i,
ACE_Timer_Node_T<TYPE> *n,
long timer_id
);
void set (
const TYPE &type,
const void *a,
const ACE_Time_Value &t,
const ACE_Time_Value &i,
ACE_Timer_Node_T<TYPE> *p,
ACE_Timer_Node_T<TYPE> *n,
long timer_id
);
TYPE &get_type (void);
void set_type (TYPE &type);
const void *get_act (void);
void set_act (void *act);
ACE_Time_Value &get_timer_value (void);
void set_timer_value (ACE_Time_Value timer_value);
ACE_Time_Value &get_interval (void);
void set_interval (ACE_Time_Value interval);
ACE_Timer_Node_T<TYPE> *get_prev (void);
void set_prev (ACE_Timer_Node_T<TYPE> *prev);
ACE_Timer_Node_T<TYPE> *get_next (void);
void set_next (ACE_Timer_Node_T<TYPE> *next);
long get_timer_id (void);
void set_timer_id (long timer_id);
void dump (void) const;
private:
TYPE type_;
const void *act_;
ACE_Time_Value timer_value_;
ACE_Time_Value interval_;
ACE_Timer_Node_T<TYPE> *prev_;
ACE_Timer_Node_T<TYPE> *next_;
long timer_id_;
};
Accessors
TYPE &get_type (void);
Get the type.
void set_type (TYPE &type);
Set the type.
const void *get_act (void);
Get the asynchronous completion token.
void set_act (void *act);
set the asynchronous completion token.
ACE_Time_Value &get_timer_value (void);
get the timer value.
void set_timer_value (ACE_Time_Value timer_value);
set the timer value.
ACE_Time_Value &get_interval (void);
get the timer interval.
void set_interval (ACE_Time_Value interval);
Set the timer interval.
ACE_Timer_Node_T<TYPE> *get_prev (void);
get the previous pointer.
void set_prev (ACE_Timer_Node_T<TYPE> *prev);
set the previous pointer.
ACE_Timer_Node_T<TYPE> *get_next (void);
get the next pointer.
void set_next (ACE_Timer_Node_T<TYPE> *next);
set the next pointer.
long get_timer_id (void);
get the timer_id.
void set_timer_id (long timer_id);
set the timer_id.
void dump (void) const;
Dump the state of an TYPE.
AUTHOR
Doug Schmidt, Irfan Pyarali, and Darrell Brunsch
LIBRARY
ace