asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design

Reference | Class Hierarchy | Class Index | Member Index

# asio::basic_io_object< IoObjectService > Class Template Reference

Inherits noncopyable.

Inheritance diagram for asio::basic_io_object< IoObjectService >:

List of all members.

## Detailed Description

### template<typename IoObjectService>
class asio::basic_io_object< IoObjectService >

Base class for all I/O objects.

## Public Types

typedef IoObjectService | service_type
| The type of the service that will be used to provide I/O operations.
typedef service_type::implementation_type | implementation_type
| The underlying implementation type of I/O object.

## Public Member Functions

asio::io_service & | io_service ()
| Get the io_service associated with the object.

## Protected Member Functions

| basic_io_object (asio::io_service &io_service)
| Construct a basic_io_object.
| ~basic_io_object ()
| Protected destructor to prevent deletion through this type.

## Member Typedef Documentation

template<typename IoObjectService>

typedef IoObjectService asio::basic_io_object< IoObjectService >::service_type

The type of the service that will be used to provide I/O operations.

template<typename IoObjectService>

typedef service_type::implementation_type asio::basic_io_object< IoObjectService >::implementation_type

The underlying implementation type of I/O object.

## Constructor & Destructor Documentation

template<typename IoObjectService>

asio::basic_io_object< IoObjectService >::basic_io_object | ( | asio::io_service & | io_service | ) | `[explicit, protected]`

Construct a basic_io_object.

template<typename IoObjectService>

asio::basic_io_object< IoObjectService >::~basic_io_object | ( |  | ) | `[protected]`

Protected destructor to prevent deletion through this type.

## Member Function Documentation

template<typename IoObjectService>

asio::io_service& asio::basic_io_object< IoObjectService >::io_service | ( |  | ) |

Get the io_service associated with the object.

This function may be used to obtain the io_service object that the I/O object uses to dispatch handlers for asynchronous operations.

Returns:
  A reference to the io_service object that the I/O object will use to dispatch handlers. Ownership is not transferred to the caller.

asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design