15 #ifndef STXXL_IO_MEM_FILE_HEADER 
   16 #define STXXL_IO_MEM_FILE_HEADER 
   41         int queue_id = DEFAULT_QUEUE,
 
   42         int allocator_id = NO_ALLOCATOR,
 
   43         unsigned int device_id = DEFAULT_DEVICE_ID)
 
   46           m_ptr(NULL), m_size(0)
 
   48     void serve(
void* buffer, offset_type offset, size_type 
bytes,
 
   52     void set_size(offset_type newsize);
 
   54     void discard(offset_type offset, offset_type size);
 
   55     const char * io_type() 
const;
 
   62 #endif // !STXXL_IO_MEM_FILE_HEADER 
char * m_ptr
pointer to memory area of "file" 
mem_file(int queue_id=DEFAULT_QUEUE, int allocator_id=NO_ALLOCATOR, unsigned int device_id=DEFAULT_DEVICE_ID)
constructs file object. 
Defines interface of file. 
#define STXXL_BEGIN_NAMESPACE
Implementation of some file methods based on serving_request. 
mutex m_mutex
sequentialize function calls 
offset_type m_size
size of memory area 
Implementation of file based on new[] and memcpy. 
static const size_t bytes
number of bytes in uint_pair 
void discard(StreamAlgorithm &in)
Reads stream content and discards it. Useful where you do not need the processed stream anymore...
#define STXXL_END_NAMESPACE