17 m_data( new
std::vector<char>(mem_block_size) )
27 m_data->resize(mem_block_size);
32 return m_data.alias_count();
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
void resize(size_t mem_block_size)
Resize the shared memory block.
void clear()
Frees the underlying memory block.
unsigned int alias_count() const
CReferencedMemBlock(size_t mem_block_size=0)
Constructor with an optional size of the memory block.
stlplus::smart_ptr< std::vector< char > > m_data
virtual ~CReferencedMemBlock()
Destructor, calls dereference_once.