STXXL  1.4-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
serving_request.h
Go to the documentation of this file.
1 /***************************************************************************
2  * include/stxxl/bits/io/serving_request.h
3  *
4  * Part of the STXXL. See http://stxxl.sourceforge.net
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 STXXL_IO_SERVING_REQUEST_HEADER
15 #define STXXL_IO_SERVING_REQUEST_HEADER
16 
18 
20 
21 //! \addtogroup reqlayer
22 //! \{
23 
24 //! Request which serves an I/O by calling the synchronous routine of the file.
26 {
27  template <class base_file_type>
28  friend class fileperblock_file;
30  friend class request_queue_impl_1q;
31 
32 public:
34  const completion_handler& on_cmpl,
35  file* f,
36  void* buf,
37  offset_type off,
38  size_type b,
39  request_type t);
40 
41 protected:
42  virtual void serve();
43 
44 public:
45  const char * io_type() const;
46 };
47 
48 //! \}
49 
51 
52 #endif // !STXXL_IO_SERVING_REQUEST_HEADER
53 // vim: et:ts=4:sw=4
Implementation of a local request queue having two queues, one for read and one for write requests...
Completion handler class (Loki-style).
Implementation of a local request queue having only one queue for both read and write requests...
Request with completion state.
Request which serves an I/O by calling the synchronous routine of the file.
Defines interface of file.
Definition: file.h:56
#define STXXL_BEGIN_NAMESPACE
Definition: namespace.h:16
Implementation of file based on other files, dynamically allocate one file per block. Allows for dynamic disk space consumption.
stxxl::internal_size_type size_type
stxxl::external_size_type offset_type
#define STXXL_END_NAMESPACE
Definition: namespace.h:17