Realistic 3D camera system
3D camera system components
read.hpp
Go to the documentation of this file.
1 //
2 // read.hpp
3 // ~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_READ_HPP
12 #define ASIO_READ_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 #include <cstddef>
20 #include "asio/async_result.hpp"
22 #include "asio/error.hpp"
23 
25 
26 namespace asio {
27 
35 
37 
72 template <typename SyncReadStream, typename MutableBufferSequence>
73 std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers);
74 
76 
111 template <typename SyncReadStream, typename MutableBufferSequence>
112 std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers,
113  asio::error_code& ec);
114 
116 
161 template <typename SyncReadStream, typename MutableBufferSequence,
162  typename CompletionCondition>
163 std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers,
164  CompletionCondition completion_condition);
165 
167 
205 template <typename SyncReadStream, typename MutableBufferSequence,
206  typename CompletionCondition>
207 std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers,
208  CompletionCondition completion_condition, asio::error_code& ec);
209 
210 #if !defined(ASIO_NO_IOSTREAM)
211 
213 
238 template <typename SyncReadStream, typename Allocator>
239 std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b);
240 
242 
267 template <typename SyncReadStream, typename Allocator>
268 std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b,
269  asio::error_code& ec);
270 
272 
306 template <typename SyncReadStream, typename Allocator,
307  typename CompletionCondition>
308 std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b,
309  CompletionCondition completion_condition);
310 
312 
347 template <typename SyncReadStream, typename Allocator,
348  typename CompletionCondition>
349 std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b,
350  CompletionCondition completion_condition, asio::error_code& ec);
351 
352 #endif // !defined(ASIO_NO_IOSTREAM)
353 
362 
365 
423 template <typename AsyncReadStream, typename MutableBufferSequence,
424  typename ReadHandler>
425 ASIO_INITFN_RESULT_TYPE(ReadHandler,
426  void (asio::error_code, std::size_t))
427 async_read(AsyncReadStream& s, const MutableBufferSequence& buffers,
428  ASIO_MOVE_ARG(ReadHandler) handler);
429 
432 
493 template <typename AsyncReadStream, typename MutableBufferSequence,
494  typename CompletionCondition, typename ReadHandler>
495 ASIO_INITFN_RESULT_TYPE(ReadHandler,
496  void (asio::error_code, std::size_t))
497 async_read(AsyncReadStream& s, const MutableBufferSequence& buffers,
498  CompletionCondition completion_condition,
499  ASIO_MOVE_ARG(ReadHandler) handler);
500 
501 #if !defined(ASIO_NO_IOSTREAM)
502 
505 
551 template <typename AsyncReadStream, typename Allocator, typename ReadHandler>
552 ASIO_INITFN_RESULT_TYPE(ReadHandler,
553  void (asio::error_code, std::size_t))
554 async_read(AsyncReadStream& s, basic_streambuf<Allocator>& b,
555  ASIO_MOVE_ARG(ReadHandler) handler);
556 
559 
613 template <typename AsyncReadStream, typename Allocator,
614  typename CompletionCondition, typename ReadHandler>
615 ASIO_INITFN_RESULT_TYPE(ReadHandler,
616  void (asio::error_code, std::size_t))
617 async_read(AsyncReadStream& s, basic_streambuf<Allocator>& b,
618  CompletionCondition completion_condition,
619  ASIO_MOVE_ARG(ReadHandler) handler);
620 
621 #endif // !defined(ASIO_NO_IOSTREAM)
622 
625 } // namespace asio
626 
628 
629 #include "asio/impl/read.hpp"
630 
631 #endif // ASIO_READ_HPP
SocketService & s
Definition: connect.hpp:521
STL namespace.
asio::basic_streambuf< Allocator > & b
Definition: read.hpp:702
ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler, void(asio::error_code, Iterator)) async_connect(basic_socket< Protocol
const MutableBufferSequence & buffers
Definition: read.hpp:521
asio::basic_streambuf< Allocator > CompletionCondition ASIO_MOVE_ARG(ReadHandler) handler)
Definition: read.hpp:704
std::size_t read(SyncReadStream &s, const MutableBufferSequence &buffers, CompletionCondition completion_condition, asio::error_code &ec)
Attempt to read a certain amount of data from a stream before returning.
Definition: read.hpp:39
Class to represent an error code value.
Definition: error_code.hpp:80
const MutableBufferSequence CompletionCondition completion_condition
Definition: read.hpp:521