Thrill  0.1
serving_request.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  * foxxll/io/serving_request.hpp
3  *
4  * Part of FOXXLL. See http://foxxll.org
5  *
6  * Copyright (C) 2002 Roman Dementiev <[email protected]>
7  * Copyright (C) 2008 Andreas Beckmann <[email protected]>
8  *
9  * Distributed under the Boost Software License, Version 1.0.
10  * (See accompanying file LICENSE_1_0.txt or copy at
11  * http://www.boost.org/LICENSE_1_0.txt)
12  **************************************************************************/
13 
14 #ifndef FOXXLL_IO_SERVING_REQUEST_HEADER
15 #define FOXXLL_IO_SERVING_REQUEST_HEADER
16 
18 
19 namespace foxxll {
20 
21 //! \addtogroup foxxll_reqlayer
22 //! \{
23 
24 //! Request which serves an I/O by calling the synchronous routine of the file.
26 {
27  constexpr static bool debug = false;
28 
29  template <class base_file_type>
30  friend class fileperblock_file;
31 
33  friend class request_queue_impl_1q;
34 
35 public:
37  const completion_handler& on_complete,
40 
41 protected:
42  virtual void serve();
43 
44 public:
45  const char * io_type() const final;
46 };
47 
48 //! \}
49 
50 } // namespace foxxll
51 
52 #endif // !FOXXLL_IO_SERVING_REQUEST_HEADER
53 
54 /**************************************************************************/
Request with completion shared_state.
uint64_t offset_type
type for offsets within a file
serving_request(const completion_handler &on_complete, file *file, void *buffer, offset_type offset, size_type bytes, read_or_write op)
void * buffer() const
Definition: request.hpp:96
const char * io_type() const final
Identifies the type of I/O implementation.
read_or_write op() const
Definition: request.hpp:99
size_t size_type
type for block transfer sizes
FOXXLL library namespace
Request which serves an I/O by calling the synchronous routine of the file.
static constexpr bool debug
offset_type offset() const
Definition: request.hpp:97
size_type bytes() const
Definition: request.hpp:98