Public Member Functions | Protected Attributes

ACE_Reactor_Notification_Strategy Class Reference

Used to notify an ACE_Reactor. More...

#include <Reactor_Notification_Strategy.h>

Inheritance diagram for ACE_Reactor_Notification_Strategy:
Inheritance graph
[legend]
Collaboration diagram for ACE_Reactor_Notification_Strategy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ACE_Reactor_Notification_Strategy (ACE_Reactor *reactor, ACE_Event_Handler *eh, ACE_Reactor_Mask mask)
virtual ~ACE_Reactor_Notification_Strategy (void)
 Default dtor.
virtual int notify (void)
virtual int notify (ACE_Event_Handler *eh, ACE_Reactor_Mask mask)
ACE_Reactorreactor (void)
 Get the reactor.
void reactor (ACE_Reactor *r)
 Set the reactor.

Protected Attributes

ACE_Reactorreactor_
 The Reactor.

Detailed Description

Used to notify an ACE_Reactor.

Integrates the ACE_Message_Queue notification into the <ACE_Reactor::notify> method.

Definition at line 33 of file Reactor_Notification_Strategy.h.


Constructor & Destructor Documentation

ACE_Reactor_Notification_Strategy::ACE_Reactor_Notification_Strategy ( ACE_Reactor reactor,
ACE_Event_Handler eh,
ACE_Reactor_Mask  mask 
)

Definition at line 12 of file Reactor_Notification_Strategy.cpp.

  : ACE_Notification_Strategy (eh, mask),
    reactor_ (reactor)
{
}

ACE_Reactor_Notification_Strategy::~ACE_Reactor_Notification_Strategy ( void   )  [virtual]

Default dtor.

Definition at line 21 of file Reactor_Notification_Strategy.cpp.

{
}


Member Function Documentation

int ACE_Reactor_Notification_Strategy::notify ( void   )  [virtual]

Implements ACE_Notification_Strategy.

Definition at line 26 of file Reactor_Notification_Strategy.cpp.

{
  return this->reactor_->notify (this->eh_, this->mask_);
}

int ACE_Reactor_Notification_Strategy::notify ( ACE_Event_Handler eh,
ACE_Reactor_Mask  mask 
) [virtual]

Implements ACE_Notification_Strategy.

Definition at line 32 of file Reactor_Notification_Strategy.cpp.

{
  return this->reactor_->notify (eh, mask);
}

ACE_Reactor * ACE_Reactor_Notification_Strategy::reactor ( void   ) 

Get the reactor.

Definition at line 8 of file Reactor_Notification_Strategy.inl.

{
  return this->reactor_;
}

void ACE_Reactor_Notification_Strategy::reactor ( ACE_Reactor r  ) 

Set the reactor.

Definition at line 14 of file Reactor_Notification_Strategy.inl.

{
  this->reactor_ = r;
}


Member Data Documentation

The Reactor.

Definition at line 55 of file Reactor_Notification_Strategy.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines