Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
stxxl::sim_disk_file Class Reference

Implementation of disk emulation. More...

#include <simdisk_file.h>

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

List of all members.

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.

Detailed Description

Implementation of disk emulation.

Remarks:
It is emulation of IBM IC35L080AVVA07 disk's timings

Definition at line 122 of file simdisk_file.h.


Constructor & Destructor Documentation

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

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

Definition at line 130 of file simdisk_file.h.


Member Function Documentation

const char* stxxl::sim_disk_file::io_type ( ) const [virtual]

Identifies the type of I/O implementation.

Returns:
pointer to null terminated string of characters, containing the name 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.

Parameters:
newsizenew file size

Reimplemented from stxxl::ufs_file_base.

Referenced by main().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines