BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslma::TestAllocatorMonitor Class Reference

#include <bslma_testallocatormonitor.h>

Public Member Functions

 TestAllocatorMonitor (const TestAllocator *testAllocator)
 
 ~TestAllocatorMonitor ()
 Destroy this object.
 
void reset (const bslma::TestAllocator *testAllocator=0)
 
bool isInUseDown () const
 
bool isInUseSame () const
 
bool isInUseUp () const
 
bool isMaxSame () const
 
bool isMaxUp () const
 
bool isTotalSame () const
 
bool isTotalUp () const
 
bsls::Types::Int64 numBlocksInUseChange () const
 
bsls::Types::Int64 numBlocksMaxChange () const
 
bsls::Types::Int64 numBlocksTotalChange () const
 

Detailed Description

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

Constructor & Destructor Documentation

◆ TestAllocatorMonitor()

bslma::TestAllocatorMonitor::TestAllocatorMonitor ( const TestAllocator testAllocator)
inlineexplicit

Create a TestAllocatorMonitor object to track changes in statistics of the specified testAllocator.

◆ ~TestAllocatorMonitor()

bslma::TestAllocatorMonitor::~TestAllocatorMonitor ( )
inline

Member Function Documentation

◆ 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()

bsls::Types::Int64 bslma::TestAllocatorMonitor::numBlocksInUseChange ( ) const
inline

Return the change in the numBlocksInUse statistic of the tracked test allocator since construction of this monitor.

◆ numBlocksMaxChange()

bsls::Types::Int64 bslma::TestAllocatorMonitor::numBlocksMaxChange ( ) const
inline

Return the change in the numBlocksMax statistic of the tracked test allocator since construction of this monitor.

◆ numBlocksTotalChange()

bsls::Types::Int64 bslma::TestAllocatorMonitor::numBlocksTotalChange ( ) const
inline

Return the change in the numBlocksTotal statistic of the tracked test allocator since construction of this monitor.

◆ reset()

void bslma::TestAllocatorMonitor::reset ( const bslma::TestAllocator testAllocator = 0)
inline

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: