13 #ifndef STXXL_IO_FILEPERBLOCK_FILE_HEADER
14 #define STXXL_IO_FILEPERBLOCK_FILE_HEADER
27 template <
class base_file_type>
46 const std::string& filename_prefix,
48 int queue_id = DEFAULT_QUEUE,
49 int allocator_id = NO_ALLOCATOR);
67 virtual void discard(offset_type offset, offset_type length);
70 virtual void export_files(offset_type offset, offset_type length, std::string filename);
72 const char * io_type()
const;
79 #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.
#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.
void discard(StreamAlgorithm_ &in)
Reads stream content and discards it. Useful where you do not need the processed stream anymore...
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
std::string filename_prefix