Stxxl
1.2.1
|
Implementation of disk emulation. More...
#include <simdisk_file.h>
Public Member Functions | |
sim_disk_file (const std::string &filename, int mode, int disk) | |
constructs file object | |
![]() | |
stxxl::int64 | size () |
Returns size of the file. | |
void | set_size (stxxl::int64 newsize) |
Changes the size of the file. | |
![]() | |
virtual request_ptr | aread (void *buffer, stxxl::int64 pos, size_t bytes, completion_handler on_cmpl)=0 |
Schedules asynchronous read request to the file. | |
virtual request_ptr | awrite (void *buffer, stxxl::int64 pos, size_t bytes, completion_handler on_cmpl)=0 |
Schedules asynchronous write request to the file. |
Additional Inherited Members | |
![]() | |
enum | open_mode { RDONLY = 1, WRONLY = 2, RDWR = 4, CREAT = 8, DIRECT = 16, TRUNC = 32 } |
Definition of acceptable file open modes. More... | |
![]() | |
file (int _id) | |
Initializes file object. |
Implementation of disk emulation.
|
inline |
constructs file object
filename | path of file |
mode | open mode, see stxxl::file::open_modes |
disk | disk(file) identifier |