8#ifndef INCLUDED_BSLMA_SEQUENTIALALLOCATOR
9#define INCLUDED_BSLMA_SEQUENTIALALLOCATOR
304#ifdef BDE_OPENSOURCE_PUBLICATION
305#error "bslma_sequentialallocator is deprecated"
512 int expand(
void *address,
int originalNumBytes);
525 int expand(
void *address,
int originalNumBytes,
int maxNumBytes);
547 int truncate(
void *address,
int originalNumBytes,
int newNumBytes);
557: d_sequentialPool(basicAllocator)
562SequentialAllocator::SequentialAllocator(
565: d_sequentialPool(strategy, basicAllocator)
570SequentialAllocator::SequentialAllocator(
int initialSize,
572: d_sequentialPool(initialSize, basicAllocator)
577SequentialAllocator::SequentialAllocator(
581: d_sequentialPool(initialSize, strategy, basicAllocator)
586SequentialAllocator::SequentialAllocator(
char *buffer,
589: d_sequentialPool(buffer, bufferSize, basicAllocator)
594SequentialAllocator::SequentialAllocator(
599: d_sequentialPool(buffer, bufferSize, strategy, basicAllocator)
604SequentialAllocator::SequentialAllocator(
int initialSize,
607: d_sequentialPool(initialSize, maxBufferSize, basicAllocator)
612SequentialAllocator::SequentialAllocator(
617: d_sequentialPool(initialSize, maxBufferSize, strategy, basicAllocator)
622SequentialAllocator::SequentialAllocator(
char *buffer,
626: d_sequentialPool(buffer, bufferSize, maxBufferSize, basicAllocator)
631SequentialAllocator::SequentialAllocator(
637: d_sequentialPool(buffer, bufferSize, maxBufferSize, strategy, basicAllocator)
645 return d_sequentialPool.
allocate(
static_cast<int>(numBytes));
668 return d_sequentialPool.
expand(address, originalNumBytes);
673 int originalNumBytes,
676 return d_sequentialPool.
expand(address, originalNumBytes, maxNumBytes);
693 int originalNumBytes,
696 return d_sequentialPool.
truncate(address, originalNumBytes, newNumBytes);
701#ifndef BDE_OPENSOURCE_PUBLICATION
Definition bslma_allocator.h:545
std::size_t size_type
Definition bslma_allocator.h:593
AlignmentStrategy
Types of alignment strategy to allocate memory.
Definition bslma_bufferallocator.h:274
Definition bslma_managedallocator.h:101
Definition bslma_sequentialallocator.h:333
void * allocate(size_type numBytes) BSLS_KEYWORD_OVERRIDE
Definition bslma_sequentialallocator.h:643
~SequentialAllocator() BSLS_KEYWORD_OVERRIDE
Destroy this sequential allocator and release all associated memory.
int expand(void *address, int originalNumBytes)
Definition bslma_sequentialallocator.h:666
void * allocateAndExpand(int *size)
Definition bslma_sequentialallocator.h:649
void release() BSLS_KEYWORD_OVERRIDE
Release all memory currently allocated through this allocator.
Definition bslma_sequentialallocator.h:680
int truncate(void *address, int originalNumBytes, int newNumBytes)
Definition bslma_sequentialallocator.h:692
void deallocate(void *address) BSLS_KEYWORD_OVERRIDE
This method has no effect for this allocator.
Definition bslma_sequentialallocator.h:661
virtual void reserveCapacity(int numBytes)
Definition bslma_sequentialallocator.h:686
Definition bslma_sequentialpool.h:441
void reserveCapacity(int numBytes)
int truncate(void *address, int originalNumBytes, int newNumBytes)
int expand(void *address, int originalNumBytes)
void * allocateAndExpand(int *size)
void * allocate(int size)
void release()
Release all memory currently allocated through this pool.
bslma::SequentialAllocator bslma_SequentialAllocator
This alias is defined for backward compatibility.
Definition bslma_sequentialallocator.h:707
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:695
Definition baljsn_encoder_testtypes.h:76