Boost.AFIO    Boost C++ Libraries
Public Member Functions | Public Attributes
boost::afio::io_req< void > Struct Template Reference

A convenience bundle of precondition, data and where for reading into a T as specified by its to_asio_buffers() overload. Data MUST stay around until the operation completes. More...

Inheritance diagram for boost::afio::io_req< void >:
boost::afio::detail::io_req_impl< false >

List of all members.

Public Member Functions

 io_req ()
 Default constructor.
 io_req (const io_req &o)
 Copy constructor.
 io_req (io_req &&o) noexcept
 Move constructor.
io_reqoperator= (const io_req &o)
 Copy assignment.
io_reqoperator= (io_req &&o) noexcept
 Move assignment.
 io_req (future<> _precondition, void *v, size_t _length, off_t _where)
 Constructs an instance.
bool validate () const
 Validates contents for correctness.

Public Attributes

future precondition
 A precondition containing an open file handle for this operation.
std::vector< asio::mutable_buffer > buffers
 A sequence of mutable Boost.ASIO buffers to read into.
off_t where
 The offset from which to read.

Detailed Description

template<>
struct boost::afio::io_req< void >

A convenience bundle of precondition, data and where for reading into a T as specified by its to_asio_buffers() overload. Data MUST stay around until the operation completes.

Definition at line 3271 of file afio.hpp.


Constructor & Destructor Documentation

Default constructor.

Definition at line 3282 of file afio.hpp.

boost::afio::io_req< void >::io_req ( const io_req< void > &  o)

Copy constructor.

Definition at line 3284 of file afio.hpp.

boost::afio::io_req< void >::io_req ( io_req< void > &&  o)

Move constructor.

Definition at line 3286 of file afio.hpp.

boost::afio::io_req< void >::io_req ( future<>  _precondition,
void *  v,
size_t  _length,
off_t  _where 
)

Constructs an instance.

Parameters:
_preconditionAn optional precondition for this operation
vA pointer to memory or reference to object into which to read or write
_whereThe offset at which to transfer
_lengthThe number of items to transfer

Definition at line 3292 of file afio.hpp.


Member Function Documentation

io_req& boost::afio::io_req< void >::operator= ( const io_req< void > &  o)

Copy assignment.

Definition at line 3288 of file afio.hpp.

io_req& boost::afio::io_req< void >::operator= ( io_req< void > &&  o)

Move assignment.

Definition at line 3290 of file afio.hpp.

bool boost::afio::detail::io_req_impl< false >::validate ( ) const [inherited]

Validates contents for correctness.

Returns:
True if contents are correct

Definition at line 3115 of file afio.hpp.


Member Data Documentation

A precondition containing an open file handle for this operation.

Reimplemented from boost::afio::detail::io_req_impl< false >.

Definition at line 3275 of file afio.hpp.

std::vector<asio::mutable_buffer> boost::afio::io_req< void >::buffers

A sequence of mutable Boost.ASIO buffers to read into.

Reimplemented from boost::afio::detail::io_req_impl< false >.

Definition at line 3277 of file afio.hpp.

off_t boost::afio::io_req< void >::where

The offset from which to read.

Reimplemented from boost::afio::detail::io_req_impl< false >.

Definition at line 3279 of file afio.hpp.


January, 2014

Copyright © 2013-2014 Niall Douglas, Cork, Ireland
Copyright © 2013 Paul Kirth, California
Documentation is generated by Doxygen