BloombergLP::bslma::TestAllocatorMonitor

This mechanism provides a set of boolean accessor methods indicating whether a change has occurred in the state of the TestAllocator object (supplied at construction) since the construction of the monitor. See the section for the statics tracked.

Synopsis

Declared in <bslma_testallocatormonitor.h>

class TestAllocatorMonitor;

Member Functions

NameDescription
TestAllocatorMonitor [constructor]Create a TestAllocatorMonitor object to track changes in statistics of the specified testAllocator.
~TestAllocatorMonitor [destructor]Destroy this object.
isInUseDown Return true if the numBlocksInUse statistic of the tracked test allocator has decreased since construction of this monitor, and false otherwise.
isInUseSame Return true if the numBlocksInUse statistic is unchanged.
isInUseUp Return true if the numBlocksInUse statistic has increased.
isMaxSame Return true if the numBlocksMax statistic of the tracked test allocator has not changed since construction of this monitor, and false otherwise.
isMaxUp Return true if the numBlocksMax statistic has increased.
isTotalSame Return true if the numBlocksTotal statistic is unchanged.
isTotalUp Return true if the numBlocksTotal statistic has increased.
numBlocksInUseChange Return the change in the numBlocksInUse statistic.
numBlocksMaxChange Return the change in the numBlocksMax statistic.
numBlocksTotalChange Return the change in the numBlocksTotal statistic of the tracked test allocator since construction of this monitor.
reset Change the allocator monitored by this object.