Stxxl  1.2.1
Public Member Functions | List of all members
sim_disk_file Class Reference

Implementation of disk emulation. More...

#include <simdisk_file.h>

Inheritance diagram for sim_disk_file:
Inheritance graph
[legend]
Collaboration diagram for sim_disk_file:
Collaboration graph
[legend]

Public Member Functions

 sim_disk_file (const std::string &filename, int mode, int disk)
 constructs file object
- Public Member Functions inherited from ufs_file_base
stxxl::int64 size ()
 Returns size of the file.
void set_size (stxxl::int64 newsize)
 Changes the size of the file.
- Public Member Functions inherited from 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

- Public Types inherited from file
enum  open_mode {
  RDONLY = 1, WRONLY = 2, RDWR = 4, CREAT = 8,
  DIRECT = 16, TRUNC = 32
}
 Definition of acceptable file open modes. More...
- Protected Member Functions inherited from file
 file (int _id)
 Initializes file object.

Detailed Description

Implementation of disk emulation.

Remarks
It is emulation of IBM IC35L080AVVA07 disk's timings

Constructor & Destructor Documentation

sim_disk_file::sim_disk_file ( const std::string &  filename,
int  mode,
int  disk 
)
inline

constructs file object

Parameters
filenamepath of file
Attention
filename must be resided at memory disk partition
Parameters
modeopen mode, see stxxl::file::open_modes
diskdisk(file) identifier

The documentation for this class was generated from the following files: