8#ifndef INCLUDED_BSLMA_SEQUENTIALALLOCATOR
9#define INCLUDED_BSLMA_SEQUENTIALALLOCATOR
303#ifdef BDE_OPENSOURCE_PUBLICATION
304#error "bslma_sequentialallocator is deprecated"
500 int expand(
void *address,
int originalNumBytes);
511 int expand(
void *address,
int originalNumBytes,
int maxNumBytes);
530 int truncate(
void *address,
int originalNumBytes,
int newNumBytes);
540: d_sequentialPool(basicAllocator)
545SequentialAllocator::SequentialAllocator(
548: d_sequentialPool(strategy, basicAllocator)
553SequentialAllocator::SequentialAllocator(
int initialSize,
555: d_sequentialPool(initialSize, basicAllocator)
560SequentialAllocator::SequentialAllocator(
564: d_sequentialPool(initialSize, strategy, basicAllocator)
569SequentialAllocator::SequentialAllocator(
char *buffer,
572: d_sequentialPool(buffer, bufferSize, basicAllocator)
577SequentialAllocator::SequentialAllocator(
582: d_sequentialPool(buffer, bufferSize, strategy, basicAllocator)
587SequentialAllocator::SequentialAllocator(
int initialSize,
590: d_sequentialPool(initialSize, maxBufferSize, basicAllocator)
595SequentialAllocator::SequentialAllocator(
600: d_sequentialPool(initialSize, maxBufferSize, strategy, basicAllocator)
605SequentialAllocator::SequentialAllocator(
char *buffer,
609: d_sequentialPool(buffer, bufferSize, maxBufferSize, basicAllocator)
614SequentialAllocator::SequentialAllocator(
620: d_sequentialPool(buffer, bufferSize, maxBufferSize, strategy, basicAllocator)
628 return d_sequentialPool.
allocate(
static_cast<int>(numBytes));
651 return d_sequentialPool.
expand(address, originalNumBytes);
656 int originalNumBytes,
659 return d_sequentialPool.
expand(address, originalNumBytes, maxNumBytes);
676 int originalNumBytes,
679 return d_sequentialPool.
truncate(address, originalNumBytes, newNumBytes);
684#ifndef BDE_OPENSOURCE_PUBLICATION
Definition bslma_allocator.h:457
std::size_t size_type
Definition bslma_allocator.h:499
AlignmentStrategy
Types of alignment strategy to allocate memory.
Definition bslma_bufferallocator.h:274
Definition bslma_managedallocator.h:101
Definition bslma_sequentialallocator.h:332
void * allocate(size_type numBytes) BSLS_KEYWORD_OVERRIDE
Definition bslma_sequentialallocator.h:626
~SequentialAllocator() BSLS_KEYWORD_OVERRIDE
Destroy this sequential allocator and release all associated memory.
int expand(void *address, int originalNumBytes)
Definition bslma_sequentialallocator.h:649
void * allocateAndExpand(int *size)
Definition bslma_sequentialallocator.h:632
void release() BSLS_KEYWORD_OVERRIDE
Release all memory currently allocated through this allocator.
Definition bslma_sequentialallocator.h:663
int truncate(void *address, int originalNumBytes, int newNumBytes)
Definition bslma_sequentialallocator.h:675
void deallocate(void *address) BSLS_KEYWORD_OVERRIDE
This method has no effect for this allocator.
Definition bslma_sequentialallocator.h:644
virtual void reserveCapacity(int numBytes)
Definition bslma_sequentialallocator.h:669
Definition bslma_sequentialpool.h:440
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:690
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:653
Definition balxml_encoderoptions.h:68