#include <bslma_testallocatormonitor.h>
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 Statistics section for the statics tracked.
See bslma_testallocatormonitor
◆ TestAllocatorMonitor()
| bslma::TestAllocatorMonitor::TestAllocatorMonitor |
( |
const TestAllocator * |
testAllocator | ) |
|
|
inlineexplicit |
◆ ~TestAllocatorMonitor()
| bslma::TestAllocatorMonitor::~TestAllocatorMonitor |
( |
| ) |
|
|
inline |
◆ isInUseDown()
| bool bslma::TestAllocatorMonitor::isInUseDown |
( |
| ) |
const |
|
inline |
Return true if the numBlocksInUse statistic of the tracked test allocator has decreased since construction of this monitor, and false otherwise.
◆ isInUseSame()
| bool bslma::TestAllocatorMonitor::isInUseSame |
( |
| ) |
const |
|
inline |
Return true if the numBlocksInUse statistic of the tracked test allocator has not changed since construction of this monitor, and false otherwise.
◆ isInUseUp()
| bool bslma::TestAllocatorMonitor::isInUseUp |
( |
| ) |
const |
|
inline |
Return true if the numBlocksInUse statistic of the tracked test allocator has increased since construction of this monitor, and false otherwise.
◆ isMaxSame()
| bool bslma::TestAllocatorMonitor::isMaxSame |
( |
| ) |
const |
|
inline |
Return true if the numBlocksMax statistic of the tracked test allocator has not changed since construction of this monitor, and false otherwise.
◆ isMaxUp()
| bool bslma::TestAllocatorMonitor::isMaxUp |
( |
| ) |
const |
|
inline |
Return true if the numBlocksMax statistic of the tracked test allocator has increased since construction of this monitor, and false otherwise.
◆ isTotalSame()
| bool bslma::TestAllocatorMonitor::isTotalSame |
( |
| ) |
const |
|
inline |
Return true if the numBlocksTotal statistic of the tracked test allocator has not changed since construction of this monitor, and false otherwise.
◆ isTotalUp()
| bool bslma::TestAllocatorMonitor::isTotalUp |
( |
| ) |
const |
|
inline |
Return true if the numBlocksTotal statistic of the tracked test allocator has increased since construction of this monitor, and false otherwise.
◆ numBlocksInUseChange()
Return the change in the numBlocksInUse statistic of the tracked test allocator since construction of this monitor.
◆ numBlocksMaxChange()
Return the change in the numBlocksMax statistic of the tracked test allocator since construction of this monitor.
◆ 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 to the specified testAllocator and initialize the allocator properties monitored by this object to the current state of testAllocator. If no testAllocator is passed, do not modify the allocator held by this object and re-initialize the allocator properties monitored by this object to the current state of that allocator.
The documentation for this class was generated from the following file: