HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_MemoryCounterFullSafe Class Reference

#include <UT_MemoryCounter.h>

+ Inheritance diagram for UT_MemoryCounterFullSafe:

Public Member Functions

 UT_MemoryCounterFullSafe ()
 
 ~UT_MemoryCounterFullSafe () override
 
void reset () override
 
bool countShared (size_t size, exint refcount, const void *p) override
 
size_t getFullCount () const
 
- Public Member Functions inherited from UT_MemoryCounter
 UT_MemoryCounter ()
 
virtual ~UT_MemoryCounter ()
 
void countUnshared (size_t size)
 
virtual size_t getCount () const
 
bool mustCountShared () const
 
bool mustCountUnshared () const
 

Additional Inherited Members

- Protected Member Functions inherited from UT_MemoryCounter
 UT_MemoryCounter (const bool countshared, const bool countunshared)
 

Detailed Description

This subclass behaves the same as UT_MemoryCounterUniqueFullSafe, except not checking whether memory is unique to what's being counted.

Definition at line 251 of file UT_MemoryCounter.h.

Constructor & Destructor Documentation

UT_MemoryCounterFullSafe::UT_MemoryCounterFullSafe ( )
inline

Definition at line 254 of file UT_MemoryCounter.h.

UT_MemoryCounterFullSafe::~UT_MemoryCounterFullSafe ( )
inlineoverride

Definition at line 259 of file UT_MemoryCounter.h.

Member Function Documentation

bool UT_MemoryCounterFullSafe::countShared ( size_t  size,
exint  refcount,
const void p 
)
inlineoverridevirtual

This counts shared memory according to the requirements of the use case.

Reimplemented from UT_MemoryCounter.

Definition at line 272 of file UT_MemoryCounter.h.

size_t UT_MemoryCounterFullSafe::getFullCount ( ) const
inline

Definition at line 295 of file UT_MemoryCounter.h.

void UT_MemoryCounterFullSafe::reset ( void  )
inlineoverridevirtual

This resets any data structures used for counting to their freshly-constructed state.

Reimplemented from UT_MemoryCounter.

Definition at line 263 of file UT_MemoryCounter.h.


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