Stxxl
1.4.0
|
Implementation of disk emulation. More...
#include <simdisk_file.h>
Public Member Functions | |
sim_disk_file (const std::string &filename, int mode, int queue_id=DEFAULT_QUEUE, int allocator_id=NO_ALLOCATOR) | |
constructs file object | |
void | serve (const request *req) throw (io_error) |
void | set_size (offset_type newsize) |
Changes the size of the file. | |
const char * | io_type () const |
Identifies the type of I/O implementation. |
Implementation of disk emulation.
Definition at line 122 of file simdisk_file.h.
stxxl::sim_disk_file::sim_disk_file | ( | const std::string & | filename, |
int | mode, | ||
int | queue_id = DEFAULT_QUEUE , |
||
int | allocator_id = NO_ALLOCATOR |
||
) | [inline] |
constructs file object
filename | path of file |
mode | open mode, see stxxl::file::open_modes |
disk | disk(file) identifier |
Definition at line 130 of file simdisk_file.h.
const char* stxxl::sim_disk_file::io_type | ( | ) | const [virtual] |
Identifies the type of I/O implementation.
Reimplemented from stxxl::ufs_file_base.
void stxxl::sim_disk_file::serve | ( | const request * | req | ) | throw (io_error) [virtual] |
Implements stxxl::file.
void stxxl::sim_disk_file::set_size | ( | offset_type | newsize | ) | [virtual] |
Changes the size of the file.
newsize | new file size |
Reimplemented from stxxl::ufs_file_base.
Referenced by main().