Blender V4.3
MEM_CacheLimiterHandle< T > Class Template Reference

#include <MEM_CacheLimiter.h>

Public Member Functions

 MEM_CacheLimiterHandle (T *data_, MEM_CacheLimiter< T > *parent_)
 
void ref ()
 
void unref ()
 
Tget ()
 
const Tget () const
 
int get_refcount () const
 
bool can_destroy () const
 
bool destroy_if_possible ()
 
void unmanage ()
 
void touch ()
 

Friends

class MEM_CacheLimiter< T >
 

Detailed Description

template<class T>
class MEM_CacheLimiterHandle< T >

Definition at line 60 of file MEM_CacheLimiter.h.

Constructor & Destructor Documentation

◆ MEM_CacheLimiterHandle()

template<class T >
MEM_CacheLimiterHandle< T >::MEM_CacheLimiterHandle ( T * data_,
MEM_CacheLimiter< T > * parent_ )
inlineexplicit

Definition at line 62 of file MEM_CacheLimiter.h.

Member Function Documentation

◆ can_destroy()

template<class T >
bool MEM_CacheLimiterHandle< T >::can_destroy ( ) const
inline

Definition at line 92 of file MEM_CacheLimiter.h.

Referenced by MEM_CacheLimiterHandle< T >::destroy_if_possible().

◆ destroy_if_possible()

template<class T >
bool MEM_CacheLimiterHandle< T >::destroy_if_possible ( )
inline

◆ get() [1/2]

template<class T >
T * MEM_CacheLimiterHandle< T >::get ( )
inline

Definition at line 77 of file MEM_CacheLimiter.h.

Referenced by MEM_CacheLimiter< T >::enforce_limits().

◆ get() [2/2]

template<class T >
const T * MEM_CacheLimiterHandle< T >::get ( ) const
inline

Definition at line 82 of file MEM_CacheLimiter.h.

◆ get_refcount()

template<class T >
int MEM_CacheLimiterHandle< T >::get_refcount ( ) const
inline

Definition at line 87 of file MEM_CacheLimiter.h.

◆ ref()

template<class T >
void MEM_CacheLimiterHandle< T >::ref ( )
inline

Definition at line 67 of file MEM_CacheLimiter.h.

◆ touch()

template<class T >
void MEM_CacheLimiterHandle< T >::touch ( )
inline

Definition at line 113 of file MEM_CacheLimiter.h.

◆ unmanage()

template<class T >
void MEM_CacheLimiterHandle< T >::unmanage ( )
inline

◆ unref()

template<class T >
void MEM_CacheLimiterHandle< T >::unref ( )
inline

Definition at line 72 of file MEM_CacheLimiter.h.

Friends And Related Symbol Documentation

◆ MEM_CacheLimiter< T >

template<class T >
friend class MEM_CacheLimiter< T >
friend

Definition at line 113 of file MEM_CacheLimiter.h.


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