13 #ifndef STXXL_IO_FILEPERBLOCK_FILE_HEADER
14 #define STXXL_IO_FILEPERBLOCK_FILE_HEADER
26 template <
class base_file_type>
45 const std::string& filename_prefix,
47 int queue_id = DEFAULT_QUEUE,
48 int allocator_id = NO_ALLOCATOR,
49 unsigned int device_id = DEFAULT_DEVICE_ID);
68 virtual void discard(offset_type offset, offset_type length);
71 virtual void export_files(offset_type offset, offset_type length, std::string filename);
73 const char * io_type()
const;
80 #endif // !STXXL_IO_FILEPERBLOCK_FILE_HEADER
virtual void set_size(offset_type new_size)
Changes the size of the file.
virtual offset_type size()
Returns size of the file.
request::size_type size_type
the size of a request
#define STXXL_BEGIN_NAMESPACE
Implementation of some file methods based on serving_request.
Implementation of file based on other files, dynamically allocate one file per block. Allows for dynamic disk space consumption.
static const size_t bytes
number of bytes in uint_pair
request::offset_type offset_type
the offset of a request, also the size of the file
void discard(StreamAlgorithm &in)
Reads stream content and discards it. Useful where you do not need the processed stream anymore...
#define STXXL_END_NAMESPACE
std::string filename_prefix