EstervQrCode 1.1.1
Library for qr code manipulation
Public Member Functions | Protected Types | Protected Attributes | List of all members
cv::utils::AllocatorStatistics Class Reference

#include <allocator_stats.impl.hpp>

Inheritance diagram for cv::utils::AllocatorStatistics:
cv::utils::AllocatorStatisticsInterface

Public Member Functions

 AllocatorStatistics ()
 
 ~AllocatorStatistics () CV_OVERRIDE
 
uint64_t getCurrentUsage () const CV_OVERRIDE
 
uint64_t getTotalUsage () const CV_OVERRIDE
 
uint64_t getNumberOfAllocations () const CV_OVERRIDE
 
uint64_t getPeakUsage () const CV_OVERRIDE
 
void resetPeakUsage () CV_OVERRIDE
 
void onAllocate (size_t sz)
 
void onFree (size_t sz)
 

Protected Types

typedef OPENCV_ALLOCATOR_STATS_COUNTER_TYPE counter_t
 

Protected Attributes

std::atomic< counter_tcurr
 
std::atomic< counter_ttotal
 
std::atomic< counter_ttotal_allocs
 
std::atomic< counter_tpeak
 

Additional Inherited Members

- Protected Member Functions inherited from cv::utils::AllocatorStatisticsInterface
 AllocatorStatisticsInterface ()
 
virtual ~AllocatorStatisticsInterface ()
 

Member Typedef Documentation

◆ counter_t

typedef OPENCV_ALLOCATOR_STATS_COUNTER_TYPE cv::utils::AllocatorStatistics::counter_t
protected

Constructor & Destructor Documentation

◆ AllocatorStatistics()

cv::utils::AllocatorStatistics::AllocatorStatistics ( )
inline

◆ ~AllocatorStatistics()

cv::utils::AllocatorStatistics::~AllocatorStatistics ( )
inline

Member Function Documentation

◆ getCurrentUsage()

uint64_t cv::utils::AllocatorStatistics::getCurrentUsage ( ) const
inlinevirtual

◆ getNumberOfAllocations()

uint64_t cv::utils::AllocatorStatistics::getNumberOfAllocations ( ) const
inlinevirtual

◆ getPeakUsage()

uint64_t cv::utils::AllocatorStatistics::getPeakUsage ( ) const
inlinevirtual

◆ getTotalUsage()

uint64_t cv::utils::AllocatorStatistics::getTotalUsage ( ) const
inlinevirtual

◆ onAllocate()

void cv::utils::AllocatorStatistics::onAllocate ( size_t  sz)
inline

◆ onFree()

void cv::utils::AllocatorStatistics::onFree ( size_t  sz)
inline

◆ resetPeakUsage()

void cv::utils::AllocatorStatistics::resetPeakUsage ( )
inlinevirtual

set peak usage = current usage

Implements cv::utils::AllocatorStatisticsInterface.

Member Data Documentation

◆ curr

std::atomic<counter_t> cv::utils::AllocatorStatistics::curr
protected

◆ peak

std::atomic<counter_t> cv::utils::AllocatorStatistics::peak
protected

◆ total

std::atomic<counter_t> cv::utils::AllocatorStatistics::total
protected

◆ total_allocs

std::atomic<counter_t> cv::utils::AllocatorStatistics::total_allocs
protected

The documentation for this class was generated from the following file: