|
Stxxl
1.4.0
|
Access point to disks properties. More...
#include <config.h>
Classes | |
| struct | DiskEntry |
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. | |
Private Member Functions | |
| config () | |
| ~config () | |
| void | init (const char *config_path="./.stxxl") |
Private Attributes | |
| std::vector< DiskEntry > | disks_props |
| unsigned | first_flash |
| stxxl::config::config | ( | ) | [inline, private] |
| stxxl::config::~config | ( | ) | [inline, private] |
| const std::string& stxxl::config::disk_io_impl | ( | int | disk | ) | const [inline] |
Returns name of I/O implementation of particular disk.
| disk | disk's identifier |
Definition at line 113 of file config.h.
Referenced by stxxl::block_manager::block_manager(), and main().
| const std::string& stxxl::config::disk_path | ( | int | disk | ) | const [inline] |
Returns path of disks.
| disk | disk's identifier |
Definition at line 98 of file config.h.
Referenced by stxxl::block_manager::block_manager(), and main().
| stxxl::int64 stxxl::config::disk_size | ( | int | disk | ) | const [inline] |
Returns disk size.
| disk | disk's identifier |
Definition at line 106 of file config.h.
Referenced by stxxl::block_manager::block_manager(), and main().
| unsigned stxxl::config::disks_number | ( | ) | const [inline] |
Returns number of disks available to user.
Definition at line 76 of file config.h.
Referenced by stxxl::block_manager::block_manager(), main(), and stxxl::stable_ksort().
| std::pair<unsigned, unsigned> stxxl::config::flash_range | ( | ) | const [inline] |
| void stxxl::config::init | ( | const char * | config_path = "./.stxxl" | ) | [private] |
Definition at line 27 of file config.cpp.
References stxxl::config::DiskEntry::autogrow, stxxl::get_version_string(), stxxl::config::DiskEntry::path, stxxl::config::DiskEntry::size, stxxl::split(), stxxl_check_ne_0, STXXL_MSG, and STXXL_THROW.
| std::pair<unsigned, unsigned> stxxl::config::regular_disk_range | ( | ) | const [inline] |
std::vector<DiskEntry> stxxl::config::disks_props [private] |
unsigned stxxl::config::first_flash [private] |
1.7.6.1