|
Stxxl
1.4.0
|
Implementation of some file methods based on serving_request. More...
#include <disk_queued_file.h>


Public Member Functions | |
| disk_queued_file (int queue_id, int allocator_id) | |
| request_ptr | aread (void *buffer, offset_type pos, size_type bytes, const completion_handler &on_cmpl) |
| Schedules an asynchronous read request to the file. | |
| request_ptr | awrite (void *buffer, offset_type pos, size_type bytes, const completion_handler &on_cmpl) |
| Schedules an asynchronous write request to the file. | |
| virtual int | get_queue_id () const |
| Returns the identifier of the file's queue. | |
| virtual int | get_allocator_id () const |
| Returns the file's allocator. | |
Private Attributes | |
| int | queue_id |
| int | allocator_id |
Implementation of some file methods based on serving_request.
Definition at line 26 of file disk_queued_file.h.
| stxxl::disk_queued_file::disk_queued_file | ( | int | queue_id, |
| int | allocator_id | ||
| ) | [inline] |
Definition at line 31 of file disk_queued_file.h.
| request_ptr stxxl::disk_queued_file::aread | ( | void * | buffer, |
| offset_type | pos, | ||
| size_type | bytes, | ||
| const completion_handler & | on_cmpl | ||
| ) | [virtual] |
Schedules an asynchronous read request to the file.
| buffer | pointer to memory buffer to read into |
| pos | file position to start read from |
| bytes | number of bytes to transfer |
| on_cmpl | I/O completion handler |
request_ptr request object, which can be used to track the status of the operation Implements stxxl::file.
Definition at line 21 of file disk_queued_file.cpp.
Referenced by main().
| request_ptr stxxl::disk_queued_file::awrite | ( | void * | buffer, |
| offset_type | pos, | ||
| size_type | bytes, | ||
| const completion_handler & | on_cmpl | ||
| ) | [virtual] |
Schedules an asynchronous write request to the file.
| buffer | pointer to memory buffer to write from |
| pos | starting file position to write |
| bytes | number of bytes to transfer |
| on_cmpl | I/O completion handler |
request_ptr request object, which can be used to track the status of the operation Implements stxxl::file.
Definition at line 35 of file disk_queued_file.cpp.
Referenced by main().
| virtual int stxxl::disk_queued_file::get_allocator_id | ( | ) | const [inline, virtual] |
Returns the file's allocator.
Implements stxxl::file.
Definition at line 49 of file disk_queued_file.h.
| virtual int stxxl::disk_queued_file::get_queue_id | ( | ) | const [inline, virtual] |
Returns the identifier of the file's queue.
Implements stxxl::file.
Definition at line 44 of file disk_queued_file.h.
int stxxl::disk_queued_file::allocator_id [private] |
Definition at line 28 of file disk_queued_file.h.
int stxxl::disk_queued_file::queue_id [private] |
Definition at line 28 of file disk_queued_file.h.
1.7.6.1