ACE_EH_Dispatch_Info Class Reference

This structure contains information of the activated event handler. More...

#include <TP_Reactor.h>

Collaboration diagram for ACE_EH_Dispatch_Info:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_EH_Dispatch_Info (void)
void set (ACE_HANDLE handle, ACE_Event_Handler *event_handler, ACE_Reactor_Mask mask, ACE_EH_PTMF callback)
bool dispatch (void) const

Public Attributes

ACE_HANDLE handle_
ACE_Event_Handlerevent_handler_
ACE_Reactor_Mask mask_
ACE_EH_PTMF callback_
int resume_flag_
bool reference_counting_required_

Private Member Functions

 ACE_EH_Dispatch_Info (const ACE_EH_Dispatch_Info &)
ACE_EH_Dispatch_Infooperator= (const ACE_EH_Dispatch_Info &)

Private Attributes

bool dispatch_

Detailed Description

This structure contains information of the activated event handler.

Definition at line 49 of file TP_Reactor.h.


Constructor & Destructor Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_EH_Dispatch_Info::ACE_EH_Dispatch_Info void   ) 
 

Definition at line 12 of file TP_Reactor.inl.

00012                                                 :
00013   handle_ (ACE_INVALID_HANDLE),
00014   event_handler_ (0),
00015   mask_ (ACE_Event_Handler::NULL_MASK),
00016   callback_ (0),
00017   resume_flag_ (ACE_Event_Handler::ACE_REACTOR_RESUMES_HANDLER),
00018   reference_counting_required_ (false),
00019   dispatch_ (false)
00020 {
00021 }

ACE_EH_Dispatch_Info::ACE_EH_Dispatch_Info const ACE_EH_Dispatch_Info  )  [private]
 


Member Function Documentation

ACE_INLINE bool ACE_EH_Dispatch_Info::dispatch void   )  const
 

Definition at line 42 of file TP_Reactor.inl.

References dispatch_.

Referenced by ACE_TP_Reactor::handle_socket_events().

00043 {
00044   return this->dispatch_;
00045 }

ACE_EH_Dispatch_Info& ACE_EH_Dispatch_Info::operator= const ACE_EH_Dispatch_Info  )  [private]
 

ACE_INLINE void ACE_EH_Dispatch_Info::set ACE_HANDLE  handle,
ACE_Event_Handler event_handler,
ACE_Reactor_Mask  mask,
ACE_EH_PTMF  callback
 

Definition at line 24 of file TP_Reactor.inl.

References ACE_EH_PTMF, ACE_Reactor_Mask, callback_, dispatch_, ACE_Event_Handler::reference_counting_policy(), reference_counting_required_, and resume_flag_.

Referenced by ACE_TP_Reactor::get_socket_event_info().

00028 {
00029   this->dispatch_ = true;
00030 
00031   this->handle_ = handle;
00032   this->event_handler_ = event_handler;
00033   this->mask_ = mask;
00034   this->callback_ = callback;
00035   this->resume_flag_ = event_handler->resume_handler ();
00036   this->reference_counting_required_ =
00037     (event_handler_->reference_counting_policy ().value () ==
00038       ACE_Event_Handler::Reference_Counting_Policy::ENABLED);
00039 }


Member Data Documentation

ACE_EH_PTMF ACE_EH_Dispatch_Info::callback_
 

Definition at line 64 of file TP_Reactor.h.

Referenced by ACE_TP_Reactor::dispatch_socket_event(), and set().

bool ACE_EH_Dispatch_Info::dispatch_ [private]
 

Definition at line 69 of file TP_Reactor.h.

Referenced by dispatch(), and set().

ACE_Event_Handler* ACE_EH_Dispatch_Info::event_handler_
 

Definition at line 62 of file TP_Reactor.h.

Referenced by ACE_TP_Reactor::dispatch_socket_event(), ACE_TP_Reactor::handle_socket_events(), and ACE_TP_Reactor::post_process_socket_event().

ACE_HANDLE ACE_EH_Dispatch_Info::handle_
 

Definition at line 61 of file TP_Reactor.h.

Referenced by ACE_TP_Reactor::dispatch_socket_event(), ACE_TP_Reactor::handle_socket_events(), and ACE_TP_Reactor::post_process_socket_event().

ACE_Reactor_Mask ACE_EH_Dispatch_Info::mask_
 

Definition at line 63 of file TP_Reactor.h.

Referenced by ACE_TP_Reactor::post_process_socket_event().

bool ACE_EH_Dispatch_Info::reference_counting_required_
 

Definition at line 66 of file TP_Reactor.h.

Referenced by ACE_TP_Reactor::handle_socket_events(), ACE_TP_Reactor::post_process_socket_event(), and set().

int ACE_EH_Dispatch_Info::resume_flag_
 

Definition at line 65 of file TP_Reactor.h.

Referenced by ACE_TP_Reactor::post_process_socket_event(), and set().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:22:01 2006 for ACE by doxygen 1.3.6