#include <Dev_Poll_Reactor.h>
Collaboration diagram for ACE_Dev_Poll_Reactor_Handler_Repository:

Public Member Functions | |
| ACE_Dev_Poll_Reactor_Handler_Repository (void) | |
| Constructor. | |
| int | open (size_t size) |
| Initialize a repository of the appropriate <size>. | |
| int | close (void) |
| Close down the repository. | |
| size_t | size (void) const |
| Returns the current table size. | |
| void | dump (void) const |
| Dump the state of an object. | |
Repository Manipulation Operations | |
| ACE_Event_Handler * | find (ACE_HANDLE handle, size_t *index_p=0) |
| void | mask (ACE_HANDLE handle, ACE_Reactor_Mask mask) |
| ACE_Reactor_Mask | mask (ACE_HANDLE handle) |
| void | suspend (ACE_HANDLE handle) |
| void | resume (ACE_HANDLE handle) |
| int | suspended (ACE_HANDLE handle) const |
| Is the event handler for the given handle suspended? | |
| int | bind (ACE_HANDLE handle, ACE_Event_Handler *handler, ACE_Reactor_Mask mask) |
| int | unbind (ACE_HANDLE handle, bool decr_refcnt=true) |
| int | unbind_all (void) |
Remove all the (ACE_HANDLE, ACE_Event_Handler) tuples. | |
Sanity Checking | |
Methods used to prevent "out-of-range" errors when indexing the underlying handler array. | |
| int | invalid_handle (ACE_HANDLE handle) const |
| int | handle_in_range (ACE_HANDLE handle) const |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
Private Attributes | |
| int | max_size_ |
| Maximum number of handles. | |
| ACE_Dev_Poll_Event_Tuple * | handlers_ |
| The underlying array of event handlers. | |
For internal use only.
This class is simply a container that maps a handle to its corresponding event handler. It is not meant for use outside of the Dev_Poll_Reactor.
|
|
Constructor.
|
|
||||||||||||||||
|
Bind the ACE_Event_Handler to the |
|
|
Close down the repository.
|
|
|
Dump the state of an object.
|
|
||||||||||||
|
Return the |
|
|
|
|
|
|
|
|
Retrieve the event mask for the event handler associated with the given handle. |
|
||||||||||||
|
Set the event mask for event handler associated with the given handle. |
|
|
Initialize a repository of the appropriate <size>.
|
|
|
Mark the event handler associated with the given handle as "resumed." |
|
|
Returns the current table size.
|
|
|
Mark the event handler associated with the given handle as "suspended." |
|
|
Is the event handler for the given handle suspended?
|
|
||||||||||||
|
Remove the binding for |
|
|
Remove all the (
|
|
|
Declare the dynamic allocation hooks.
|
|
|
The underlying array of event handlers.
The array of event handlers is directly indexed directly using an |
|
|
Maximum number of handles.
|
1.3.9.1