stx_CacheElRef Class Reference
[Common, basic classes, functions and types]

#include <stx_Cache.h>

Inheritance diagram for stx_CacheElRef:

Inheritance graph
[legend]
Collaboration diagram for stx_CacheElRef:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 48 of file stx_Cache.h.


Public Member Functions

 stx_CacheElRef (stx_CacheKey_t a_key)
void IncRef ()
void DecRef ()
bool IsLast ()
int GetRefNumber ()

Private Attributes

int m_refNumber

Constructor & Destructor Documentation

stx_CacheElRef::stx_CacheElRef ( stx_CacheKey_t  a_key  )  [inline]

Definition at line 50 of file stx_Cache.h.

00050 : stx_CacheEl(a_key), m_refNumber(0) {};


Member Function Documentation

void stx_CacheElRef::IncRef (  )  [inline]

Definition at line 52 of file stx_Cache.h.

Referenced by stx_CacheArrayOfRefEl< _MaxCacheSize >::Get(), and stx_CacheArrayOfRefEl< _MaxCacheSize >::Insert().

00052 { m_refNumber++; };

Here is the caller graph for this function:

void stx_CacheElRef::DecRef (  )  [inline]

Definition at line 54 of file stx_Cache.h.

References stx_CacheEl::RemoveNotification().

Referenced by stx_CacheArrayOfRefEl< _MaxCacheSize >::RemoveEl().

00054                   { 
00055         if (--m_refNumber == 0) {
00056             RemoveNotification();
00057             delete this;
00058         }
00059     };

Here is the call graph for this function:

Here is the caller graph for this function:

bool stx_CacheElRef::IsLast (  )  [inline]

Definition at line 61 of file stx_Cache.h.

Referenced by stx_CacheArrayOfRefEl< _MaxCacheSize >::RemoveEl().

00061 { return m_refNumber == 1; };

Here is the caller graph for this function:

int stx_CacheElRef::GetRefNumber (  )  [inline]

Definition at line 63 of file stx_Cache.h.

00063 { return m_refNumber; };


Member Data Documentation

Reimplemented from stx_CacheEl.

Definition at line 63 of file stx_Cache.h.


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

Generated on Mon Feb 27 19:50:44 2012 for OPENARCHIVE by  doxygen 1.5.6