15 #ifndef STXXL_IO_SIMDISK_FILE_HEADER
16 #define STXXL_IO_SIMDISK_FILE_HEADER
20 #ifndef STXXL_HAVE_SIMDISK_FILE
22 #define STXXL_HAVE_SIMDISK_FILE STXXL_HAVE_MMAP_FILE
25 #if STXXL_HAVE_SIMDISK_FILE
39 #define AVERAGE_SPEED (15 * 1024 * 1024)
54 inline Zone(
int _first_sector) : first_sector(_first_sector)
67 sect_per_track(_sect_per_track),
69 first_sector(_first_sector),
71 sustained_data_rate(_rate)
76 inline bool operator () (
const Zone& a,
const Zone& b)
const
94 void add_zone(
int& first_cyl,
int last_cyl,
95 int sec_per_track,
int& first_sect);
126 std::cout <<
"Please, make sure that '" << filename <<
127 "' is resided on swap memory partition!" <<
131 void set_size(offset_type newsize);
132 const char * io_type()
const;
139 #endif // #if STXXL_HAVE_SIMDISK_FILE
141 #endif // !STXXL_IO_SIMDISK_FILE_HEADER
Zone(int _first_sector, int _sectors, double _rate)
std::set< Zone, ZoneCmp > zones
Implementation of disk emulation.
request::size_type size_type
the size of a request
double sustained_data_rate
#define STXXL_BEGIN_NAMESPACE
Implementation of some file methods based on serving_request.
sim_disk_file(const std::string &filename, int mode, int queue_id=DEFAULT_QUEUE, int allocator_id=NO_ALLOCATOR)
Constructs file object.
Base for UNIX file system implementations.
request::offset_type offset_type
the offset of a request, also the size of the file
Request with basic properties like file and offset.
#define STXXL_END_NAMESPACE