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

Implementation of file based on UNIX syscalls. More...

#include <syscall_file.h>

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

List of all members.

Public Member Functions

 syscall_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)
const char * io_type () const
 Identifies the type of I/O implementation.

Detailed Description

Implementation of file based on UNIX syscalls.

Examples:
algo/copy_and_sort_file.cpp, algo/sort_file.cpp, and io/test_io.cpp.

Definition at line 28 of file syscall_file.h.


Constructor & Destructor Documentation

stxxl::syscall_file::syscall_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 36 of file syscall_file.h.


Member Function Documentation

const char * stxxl::syscall_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.

Definition at line 103 of file syscall_file.cpp.

void stxxl::syscall_file::serve ( const request req) throw (io_error) [virtual]

Implements stxxl::file.

Definition at line 26 of file syscall_file.cpp.

References STXXL_THROW2.


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