24 #ifndef _TPIE_BLOCKS_FREESPACE_COLLECTION_H
25 #define _TPIE_BLOCKS_FREESPACE_COLLECTION_H
29 #include <tpie/blocks/block.h>
42 stream_size_type m_end;
43 memory_size_type m_blockSize;
48 , m_blockSize(blockSize)
50 if(m_free.size() > 0) {
51 m_end = m_free.pop().position;
57 m_free.push(
block_handle(m_end, std::numeric_limits<stream_size_type>::max()));
61 tp_assert(handle.size == m_blockSize,
"the size of the given handle is incorrect");
74 stream_size_type size() {
85 #endif // _TPIE_BLOCKS_FREESPACE_COLLECTION_H
Defines the tp_assert macro.
tpie_init and tpie_finish.
An implementation of an external-memory stack.
#define tp_assert(condition, message)