24 #ifndef _TPIE_BLOCKS_BLOCK_COLLECTION_H
25 #define _TPIE_BLOCKS_BLOCK_COLLECTION_H
29 #include <tpie/blocks/block.h>
30 #include <tpie/blocks/freespace_collection.h>
47 block_collection(std::string fileName, memory_size_type blockSize,
bool writeable);
89 #endif // _TPIE_BLOCKS_BLOCK_COLLECTION_H
tpie_init and tpie_finish.
void read_block(block_handle handle, block &b)
Reads the content of a block from disk.
A class to manage writing and reading of block to disk.
Declare default file accessor.
block_collection(std::string fileName, memory_size_type blockSize, bool writeable)
Create a block collection.
void write_block(block_handle handle, const block &b)
Writes the content of a block to disk.
block_handle get_free_block()
Allocates a new block.
void free_block(block_handle handle)
frees a block
POSIX-style file accessor.