UT_LimitedCache::Lookup Class Reference

#include <UT_LimitedCache.h>

List of all members.

Public Member Functions

 Lookup ()
 Lookup (const Lookup &src)
 Copy c-tor.
 ~Lookup ()
const Lookupoperator= (const Lookup &src)
 Assignment operator.
void clear ()
bool isValid () const
const UT_LimitedCacheKeygetKey () const
UT_LimitedCacheItemgetItem () const

Friends

class UT_LimitedCache


Detailed Description

The lookup class is used to return query/add results. Using the lookup class, you are guaranteed that the item will not be destroyed while the lookup exists. When the lookup is destroyed, the item becomes fair game for deletion.

Definition at line 144 of file UT_LimitedCache.h.


Constructor & Destructor Documentation

UT_LimitedCache::Lookup::Lookup (  )  [inline]

Definition at line 146 of file UT_LimitedCache.h.

UT_LimitedCache::Lookup::Lookup ( const Lookup src  )  [inline]

Copy c-tor.

Definition at line 152 of file UT_LimitedCache.h.

UT_LimitedCache::Lookup::~Lookup (  )  [inline]

Definition at line 159 of file UT_LimitedCache.h.


Member Function Documentation

void UT_LimitedCache::Lookup::clear ( void   )  [inline]

If you manually delete the object from the cache, you must call clear() so that release() isn't called in the destructor. Alternatively, if the cache is destructed before the query, it should also be cleared.

Definition at line 189 of file UT_LimitedCache.h.

UT_LimitedCacheItem* UT_LimitedCache::Lookup::getItem (  )  const [inline]

Accessors

Definition at line 182 of file UT_LimitedCache.h.

const UT_LimitedCacheKey* UT_LimitedCache::Lookup::getKey (  )  const [inline]

Accessors

Definition at line 181 of file UT_LimitedCache.h.

bool UT_LimitedCache::Lookup::isValid ( void   )  const [inline]

Accessors

Definition at line 180 of file UT_LimitedCache.h.

const Lookup& UT_LimitedCache::Lookup::operator= ( const Lookup src  )  [inline]

Assignment operator.

Definition at line 164 of file UT_LimitedCache.h.


Friends And Related Function Documentation

friend class UT_LimitedCache [friend]

Definition at line 219 of file UT_LimitedCache.h.


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

Generated on Mon Jan 28 00:30:11 2013 for HDK by  doxygen 1.5.9