HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 ()
 
virtual int64 getMemoryUsage () const =0
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< UT_CappedItem >
SYS_FORCE_INLINE UT_IntrusiveRefCounter ()
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &)
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &)
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const
 Return current counter. More...
 

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 46 of file UT_CappedCache.h.

Constructor & Destructor Documentation

UT_CappedItem::UT_CappedItem ( )
virtual UT_CappedItem::~UT_CappedItem ( )
virtual

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.


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