HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_CappedItem Class Referenceabstract

Base class for items in the UT_CappedCache. More...

#include <UT_CappedCache.h>

+ Inheritance diagram for UT_CappedItem:

Public Member Functions

 UT_CappedItem ()
 
virtual ~UT_CappedItem ()
 
 UT_CappedItem (const UT_CappedItem &)=delete
 
UT_CappedItemoperator= (const UT_CappedItem &)=delete
 
virtual int64 getMemoryUsage () const =0
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< UT_CappedItem >
SYS_FORCE_INLINE UT_IntrusiveRefCounter () noexcept
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &) noexcept
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const noexcept
 Return current counter. More...
 
SYS_FORCE_INLINE bool conditionalAddRef () noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from UT_IntrusiveRefCounter< UT_CappedItem >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 

Detailed Description

Base class for items in the UT_CappedCache.

Definition at line 51 of file UT_CappedCache.h.

Constructor & Destructor Documentation

UT_CappedItem::UT_CappedItem ( )
virtual UT_CappedItem::~UT_CappedItem ( )
virtual
UT_CappedItem::UT_CappedItem ( const UT_CappedItem )
delete

Member Function Documentation

virtual int64 UT_CappedItem::getMemoryUsage ( ) const
pure virtual

Query the memory used by the cache item. This should be constant over the life of the item.

Implemented in GusdUSD_XformCache::XformInfo.

UT_CappedItem& UT_CappedItem::operator= ( const UT_CappedItem )
delete

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