ACE 8.0.5
Loading...
Searching...
No Matches
ACE_Asynch_Read_File::Result Class Reference

This is that class which will be passed back to the {handler} when the asynchronous read completes. This class forwards all the methods to the implementation class. More...

#include <Asynch_IO.h>

Inheritance diagram for ACE_Asynch_Read_File::Result:
Collaboration diagram for ACE_Asynch_Read_File::Result:

Public Member Functions

ACE_Asynch_Read_File_Result_Implimplementation () const
 Get the implementation class.
Public Member Functions inherited from ACE_Asynch_Read_Stream::Result
size_t bytes_to_read () const
ACE_Message_Blockmessage_block () const
 Message block which contains the read data.
ACE_HANDLE handle () const
 I/O handle used for reading.
ACE_Asynch_Read_Stream_Result_Implimplementation () const
 Get the implementation class.
Public Member Functions inherited from ACE_Asynch_Result
size_t bytes_transferred () const
 Number of bytes transferred by the operation.
const void * act () const
 ACT associated with the operation.
int success () const
 Did the operation succeed?
const void * completion_key () const
unsigned long error () const
 Error value if the operation fails.
ACE_HANDLE event () const
unsigned long offset () const
unsigned long offset_high () const
int priority () const
int signal_number () const
virtual ~ACE_Asynch_Result ()
 Destructor.

Protected Member Functions

 Result (ACE_Asynch_Read_File_Result_Impl *implementation)
 Constructor. This implementation will not be deleted.
virtual ~Result ()
 Destructor.
Protected Member Functions inherited from ACE_Asynch_Read_Stream::Result
 Result (ACE_Asynch_Read_Stream_Result_Impl *implementation)
 Constructor.
Protected Member Functions inherited from ACE_Asynch_Result
 ACE_Asynch_Result (ACE_Asynch_Result_Impl *implementation)
ACE_Asynch_Result_Implimplementation () const
 Get the implementation class.

Protected Attributes

ACE_Asynch_Read_File_Result_Implimplementation_
 The implementation class.
Protected Attributes inherited from ACE_Asynch_Read_Stream::Result
ACE_Asynch_Read_Stream_Result_Implimplementation_
 The implementation class.
Protected Attributes inherited from ACE_Asynch_Result
ACE_Asynch_Result_Implimplementation_
 Implementation class.

Private Member Functions

void operator= (Result &)

Friends

class ACE_POSIX_Asynch_Read_File_Result
class ACE_WIN32_Asynch_Read_File_Result

Detailed Description

This is that class which will be passed back to the {handler} when the asynchronous read completes. This class forwards all the methods to the implementation class.

This class has all the information necessary for the {handler} to uniquiely identify the completion of the asynchronous read. This class differs slightly from ACE_Asynch_Read_Stream::Result as it calls back {ACE_Handler::handle_read_file} on the {handler} instead of {ACE_Handler::handle_read_stream}. No additional state is required by this class as ACE_Asynch_Result can store the {offset}.

Constructor & Destructor Documentation

◆ Result()

ACE_Asynch_Read_File::Result::Result ( ACE_Asynch_Read_File_Result_Impl * implementation)
protected

Constructor. This implementation will not be deleted.

◆ ~Result()

ACE_Asynch_Read_File::Result::~Result ( )
protectedvirtual

Destructor.

Reimplemented from ACE_Asynch_Read_Stream::Result.

Member Function Documentation

◆ implementation()

ACE_Asynch_Read_File_Result_Impl * ACE_Asynch_Read_File::Result::implementation ( ) const

Get the implementation class.

◆ operator=()

void ACE_Asynch_Read_File::Result::operator= ( Result & )
inlineprivate

Here just to provide an dummy implementation, since the one auto generated by MSVC is flagged as infinitely recursive

◆ ACE_POSIX_Asynch_Read_File_Result

friend class ACE_POSIX_Asynch_Read_File_Result
friend

The concrete implementation result classes only construct this class.

◆ ACE_WIN32_Asynch_Read_File_Result

friend class ACE_WIN32_Asynch_Read_File_Result
friend

Member Data Documentation

◆ implementation_

ACE_Asynch_Read_File_Result_Impl* ACE_Asynch_Read_File::Result::implementation_
protected

The implementation class.


The documentation for this class was generated from the following files: