8#ifndef INCLUDED_BALL_FIXEDSIZERECORDBUFFER
9#define INCLUDED_BALL_FIXEDSIZERECORDBUFFER
162#include <balscm_version.h>
178#include <bsl_deque.h>
179#include <bsl_memory.h>
213 int d_currentTotalSize;
322 bslma::Allocator *basicAllocator)
323: d_maxTotalSize(maxTotalSize)
324, d_currentTotalSize(0)
325, d_allocator(basicAllocator)
326, d_deque(&d_allocator)
348 d_currentTotalSize = 0;
356 return d_deque.
back();
363 return d_deque.
front();
370 return static_cast<int>(d_deque.
size());
Definition ball_countingallocator.h:138
Definition ball_fixedsizerecordbuffer.h:203
void removeAll() BSLS_KEYWORD_OVERRIDE
Definition ball_fixedsizerecordbuffer.h:344
int pushFront(const bsl::shared_ptr< Record > &handle) BSLS_KEYWORD_OVERRIDE
void endSequence() BSLS_KEYWORD_OVERRIDE
Definition ball_fixedsizerecordbuffer.h:338
void beginSequence() BSLS_KEYWORD_OVERRIDE
Definition ball_fixedsizerecordbuffer.h:332
~FixedSizeRecordBuffer() BSLS_KEYWORD_OVERRIDE
BSLMF_NESTED_TRAIT_DECLARATION(FixedSizeRecordBuffer, bslma::UsesBslmaAllocator)
void popFront() BSLS_KEYWORD_OVERRIDE
int length() const BSLS_KEYWORD_OVERRIDE
Return the number of record handles in this record buffer.
Definition ball_fixedsizerecordbuffer.h:367
const bsl::shared_ptr< Record > & front() const BSLS_KEYWORD_OVERRIDE
Definition ball_fixedsizerecordbuffer.h:360
int pushBack(const bsl::shared_ptr< Record > &handle) BSLS_KEYWORD_OVERRIDE
void popBack() BSLS_KEYWORD_OVERRIDE
const bsl::shared_ptr< Record > & back() const BSLS_KEYWORD_OVERRIDE
Definition ball_fixedsizerecordbuffer.h:353
Definition ball_recordbuffer.h:288
Definition ball_record.h:178
reference back()
Definition bslstl_deque.h:1997
size_type size() const BSLS_KEYWORD_NOEXCEPT
Return the number of elements contained by this deque.
Definition bslstl_deque.h:2074
reference front()
Definition bslstl_deque.h:1987
Definition bslstl_deque.h:772
void swap(deque< VALUE_TYPE, ALLOCATOR > &other) BSLS_KEYWORD_NOEXCEPT_SPECIFICATION(AllocatorTraits void clear() BSLS_KEYWORD_NOEXCEPT
Definition bslstl_deque.h:1454
Definition bslstl_sharedptr.h:1830
Definition bslma_allocator.h:457
Definition bslmt_lockguard.h:234
Definition bslmt_recursivemutex.h:130
void unlock()
Definition bslmt_recursivemutex.h:206
void lock()
Definition bslmt_recursivemutex.h:194
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:653
Definition ball_administration.h:214
Definition bdlb_printmethods.h:283
Definition balxml_encoderoptions.h:68
Definition bslma_usesbslmaallocator.h:343