ACE_Event_Tuple Class Reference

An ACE_Event_Handler and its associated ACE_HANDLE. More...

#include <Select_Reactor_Base.h>

Collaboration diagram for ACE_Event_Tuple:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Event_Tuple (void)
 Default constructor.
 ACE_Event_Tuple (ACE_Event_Handler *eh, ACE_HANDLE h)
 Constructor.
bool operator== (const ACE_Event_Tuple &rhs) const
 Equality operator.
bool operator!= (const ACE_Event_Tuple &rhs) const
 Inequality operator.

Public Attributes

ACE_HANDLE handle_
 Handle.
ACE_Event_Handlerevent_handler_
 ACE_Event_Handler associated with the ACE_HANDLE.

Detailed Description

An ACE_Event_Handler and its associated ACE_HANDLE.

One ACE_Event_Handler is registered for one or more ACE_HANDLE. At various points, this information must be stored explicitly. This class provides a lightweight mechanism to do so.

Definition at line 92 of file Select_Reactor_Base.h.


Constructor & Destructor Documentation

ACE_INLINE ACE_Event_Tuple::ACE_Event_Tuple ( void   ) 

Default constructor.

Definition at line 89 of file Select_Reactor_Base.inl.

00090   : handle_ (ACE_INVALID_HANDLE),
00091     event_handler_ (0)
00092 {
00093 }

ACE_INLINE ACE_Event_Tuple::ACE_Event_Tuple ( ACE_Event_Handler eh,
ACE_HANDLE  h 
)

Constructor.

Definition at line 96 of file Select_Reactor_Base.inl.

00098   : handle_ (h),
00099     event_handler_ (eh)
00100 {
00101 }


Member Function Documentation

ACE_INLINE bool ACE_Event_Tuple::operator!= ( const ACE_Event_Tuple rhs  )  const

Inequality operator.

Definition at line 110 of file Select_Reactor_Base.inl.

00111 {
00112   return !(*this == rhs);
00113 }

ACE_INLINE bool ACE_Event_Tuple::operator== ( const ACE_Event_Tuple rhs  )  const

Equality operator.

Definition at line 104 of file Select_Reactor_Base.inl.

References handle_.

00105 {
00106   return this->handle_ == rhs.handle_;
00107 }


Member Data Documentation

ACE_Event_Handler* ACE_Event_Tuple::event_handler_

ACE_Event_Handler associated with the ACE_HANDLE.

Definition at line 114 of file Select_Reactor_Base.h.

Referenced by ACE_Priority_Reactor::build_bucket().

ACE_HANDLE ACE_Event_Tuple::handle_

Handle.

Definition at line 111 of file Select_Reactor_Base.h.

Referenced by operator==().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:35:06 2010 for ACE by  doxygen 1.4.7