Access point to disks properties.
More...
#include <config.h>
Inherits singleton< config >.
|
unsigned | disks_number () const |
| Returns number of disks available to user. More...
|
|
std::pair< unsigned, unsigned > | regular_disk_range () const |
| Returns contiguous range of regular disks w/o flash devices in the array of all disks. More...
|
|
std::pair< unsigned, unsigned > | flash_range () const |
| Returns contiguous range of flash devices in the array of all disks. More...
|
|
const std::string & | disk_path (int disk) const |
| Returns path of disks. More...
|
|
stxxl::int64 | disk_size (int disk) const |
| Returns disk size. More...
|
|
const std::string & | disk_io_impl (int disk) const |
| Returns name of I/O implementation of particular disk. More...
|
|
Access point to disks properties.
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: