Stxxl  1.2.1
Public Member Functions
ufs_file_base Class Reference

Base for UNIX file system implementations. More...

#include <ufs_file.h>

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

List of all members.

Public Member Functions

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

Base for UNIX file system implementations.


Member Function Documentation

void ufs_file_base::set_size ( stxxl::int64  newsize)
virtual

Changes the size of the file.

Parameters:
newsizevalue of the new file size

Implements file.

Reimplemented in sim_disk_file.

References size().

stxxl::int64 ufs_file_base::size ( )
virtual

Returns size of the file.

Returns:
file size in bytes

Implements file.

Referenced by set_size(), and sim_disk_file::set_size().


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