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

Implementation of memory mapped access file. More...

#include <mmap_file.h>

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

List of all members.

Public Member Functions

 mmap_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 memory mapped access file.

Examples:
io/test_io.cpp.

Definition at line 48 of file mmap_file.h.


Constructor & Destructor Documentation

stxxl::mmap_file::mmap_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
modeopen mode, see stxxl::file::open_modes
diskdisk(file) identifier

Definition at line 55 of file mmap_file.h.


Member Function Documentation

const char* stxxl::mmap_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::mmap_file::serve ( const request req) throw (io_error) [virtual]

Implements stxxl::file.


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