|
|
|
Home / Open source / Terimber 2.0
rep_allocator Class Referenceclass support "deallocation" actually memory reusing
More...
#include <memory.h>
List of all members.
Detailed Description
class support "deallocation" actually memory reusing
Definition at line 158 of file memory.h.
Constructor & Destructor Documentation
rep_allocator::rep_allocator |
( |
const rep_allocator & |
x |
) |
[private] |
rep_allocator::rep_allocator |
( |
size_t |
capacity = os_def_size |
) |
[protected] |
constructor
- Parameters:
-
capacity |
default capacity |
Definition at line 141 of file memory.cpp.
rep_allocator::~rep_allocator |
( |
|
) |
[protected] |
Member Function Documentation
void rep_allocator::clear_all |
( |
bool |
secure = false |
) |
[inline] |
clears all chunks
- Parameters:
-
secure |
rewrite memory before release |
Reimplemented from byte_allocator.
Definition at line 161 of file memory.hpp.
References _rep, chunk_stack::clear(), and byte_allocator::clear_all().
Referenced by varmap< T, C >::clear(), stack< T >::clear(), map< K, T, Pr, M >::clear(), list< T >::clear(), and aiogate::off().
void rep_allocator::clear_extra |
( |
bool |
secure = false |
) |
[inline] |
void rep_allocator::reset |
( |
bool |
secure = false |
) |
[inline] |
void rep_allocator::deallocate |
( |
void * |
p |
) |
[inline] |
pushes pointer to object back to repository stack
- Parameters:
-
Reimplemented from byte_allocator.
Definition at line 178 of file memory.hpp.
References _rep, and chunk_stack::push().
Referenced by stack< T >::_freenode(), map< K, T, Pr, M >::_freenode(), list< T >::_freenode(), aiosock::_put_block(), aiofile::_put_block(), _vector< T, A >::clear(), variant_factory::destroy(), aiogate::final_close(), aiogate::recv(), and aiogate::v_on_send().
Member Data Documentation
The documentation for this class was generated from the following files:
|
|
|
|