Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef CORELIB___NCBIMEMPOOL__HPP
2 #define CORELIB___NCBIMEMPOOL__HPP
68 size_t GetChunkSize(
void)
const;
77 size_t GetMallocThreshold(
void)
const;
84 void SetMallocThreshold(
size_t malloc_threshold);
87 void* Allocate(
size_t size);
92 void Deallocate(
void* ptr);
96 static void Delete(
const CObject*
object);
static const int chunk_size
Include a standard set of the NCBI C++ Toolkit most basic headers.
CObjectMemoryPool(const CObjectMemoryPool &)
friend class CObjectMemoryPool
size_t GetChunkSize(void) const
configurable parameters
void operator=(const CObjectMemoryPool &)
CRef< CObjectMemoryPoolChunk > m_CurrentChunk
size_t GetMallocThreshold(void) const
Get threshold for direct allocation from system heap.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_XNCBI_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.