http://stxxl.sourceforge.net
<beckmann@cs.uni-frankfurt.de>
<singler@ira.uka.de>
http://www.boost.org/LICENSE_1_0.txt
#ifndef STXXL_MEM_FILE_HEADER
#define STXXL_MEM_FILE_HEADER
#include <stxxl/bits/io/disk_queued_file.h>
#include <stxxl/bits/io/request.h>
__STXXL_BEGIN_NAMESPACE
class mem_file : public disk_queued_file
{
char * ptr;
offset_type sz;
public:
mem_file(
int queue_id = DEFAULT_QUEUE, int allocator_id = NO_ALLOCATOR) : disk_queued_file(queue_id, allocator_id), ptr(NULL), sz(0)
{ }
void serve(const request * req) throw (io_error);
~mem_file();
offset_type size();
void set_size(offset_type newsize);
void lock();
void discard(offset_type offset, offset_type size);
const char * io_type() const;
};
__STXXL_END_NAMESPACE
#endif