Access point to disks properties.
More...
#include <config.h>
List of all members.
Public Member Functions |
unsigned | disks_number () const |
| Returns number of disks available to user.
|
std::pair< unsigned, unsigned > | regular_disk_range () const |
| Returns contiguous range of regular disks w/o flash devices in the array of all disks.
|
std::pair< unsigned, unsigned > | flash_range () const |
| Returns contiguous range of flash devices in the array of all disks.
|
const std::string & | disk_path (int disk) const |
| Returns path of disks.
|
stxxl::int64 | disk_size (int disk) const |
| Returns disk size.
|
const std::string & | disk_io_impl (int disk) const |
| Returns name of I/O implementation of particular disk.
|
Detailed Description
Access point to disks properties.
Member Function Documentation
const std::string& config::disk_io_impl |
( |
int |
disk |
) |
const [inline] |
Returns name of I/O implementation of particular disk.
- Parameters:
-
const std::string& config::disk_path |
( |
int |
disk |
) |
const [inline] |
Returns path of disks.
- Parameters:
-
- Returns:
- string that contains the disk's path name
stxxl::int64 config::disk_size |
( |
int |
disk |
) |
const [inline] |
Returns disk size.
- Parameters:
-
- Returns:
- disk size in bytes
unsigned config::disks_number |
( |
|
) |
const [inline] |
Returns number of disks available to user.
- Returns:
- number of disks
Referenced by stable_ksort().
std::pair<unsigned, unsigned> config::flash_range |
( |
|
) |
const [inline] |
Returns contiguous range of flash devices in the array of all disks.
- Returns:
- range [begin, end) of flash device indices
std::pair<unsigned, unsigned> config::regular_disk_range |
( |
|
) |
const [inline] |
Returns contiguous range of regular disks w/o flash devices in the array of all disks.
- Returns:
- range [begin, end) of regular disk indices
The documentation for this class was generated from the following files: