Nuke binary plugins 15.0.5
 
Loading...
Searching...
No Matches
DD::Image::IAllocator Class Referenceabstract

Allocator interface. More...

#include <IAllocator.h>

Inheritance diagram for DD::Image::IAllocator:
DD::Image::BlockAllocator DD::Image::HeapAllocator

Public Member Functions

virtual const char * getName () const =0
 Return the name for this allocator.
 
virtual const char * getType () const =0
 Return the type name for this allocator (e.g. "HeapAllocator")
 
virtual size_t getRequestedUsage () const =0
 Returns the sum total requested by the user.
 
virtual size_t getAllocatorUsage () const
 
virtual size_t getRequestedHighWaterMark () const =0
 Returns the high watermark for the requested allocations.
 
virtual size_t getAllocatorHighWaterMark () const
 
virtual void resetHighWaterMark ()=0
 Resets the high watermark for the allocator.
 

Static Public Member Functions

template<typename T >
static T * getAllocator (IAllocator *pAllocator)
 Helper function for returning a concrete allocator type.
 

Detailed Description

Allocator interface.

Member Function Documentation

◆ getAllocatorUsage()

virtual size_t DD::Image::IAllocator::getAllocatorUsage ( ) const
inlinevirtual

Returns the sum total used by the allocator. This can differ from the requested in some allocators, i.e. BlockAllocator

Referenced by DD::Image::Memory::dump_allocatorinfoXML().

◆ getAllocatorHighWaterMark()

virtual size_t DD::Image::IAllocator::getAllocatorHighWaterMark ( ) const
inlinevirtual

Returns the high watermark for the allocator. This can differ from the RequestedHighwaterMark in some allocators, i.e. BlockAllocator

Referenced by DD::Image::Memory::dump_allocatorinfoXML().



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com