Public Member Functions | Protected Member Functions | Protected Attributes

ufs_file_base Class Reference
[File implementations]

Base for UNIX file system implementations. More...

#include <ufs_file_base.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

offset_type size ()
 Returns size of the file.
void set_size (offset_type newsize)
 Changes the size of the file.
void lock ()
 Locks file for reading and writing (acquires a lock in the file system).
const char * io_type () const
 Identifies the type of I/O implementation.
void remove ()

Protected Member Functions

 ufs_file_base (const std::string &filename, int mode)
offset_type _size ()
void close ()

Protected Attributes

mutex fd_mutex
int file_des
int mode_
const std::string filename

Detailed Description

Base for UNIX file system implementations.


Member Function Documentation

__STXXL_BEGIN_NAMESPACE const char * ufs_file_base::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 file.

void ufs_file_base::lock (  )  [virtual]

Locks file for reading and writing (acquires a lock in the file system).

Implements file.

void ufs_file_base::set_size ( offset_type  newsize  )  [virtual]

Changes the size of the file.

Parameters:
newsize new file size

Implements file.

file::offset_type ufs_file_base::size (  )  [virtual]

Returns size of the file.

Returns:
file size in bytes

Implements file.


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