Public Member Functions | Private Attributes

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.

Public Member Functions

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

Private Attributes

int m_refNumber

Detailed Description

Definition at line 62 of file stx_Cache.h.


Constructor & Destructor Documentation

stx_CacheElRef::stx_CacheElRef ( stx_CacheKey_t  a_key  )  [inline]

Definition at line 64 of file stx_Cache.h.

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


Member Function Documentation

void stx_CacheElRef::DecRef (  )  [inline]

Definition at line 68 of file stx_Cache.h.

References stx_CacheEl::RemoveNotification().

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

                  { 
        if (--m_refNumber == 0) {
            RemoveNotification();
            delete this;
        }
    };

Here is the call graph for this function:

Here is the caller graph for this function:

int stx_CacheElRef::GetRefNumber (  )  [inline]

Definition at line 77 of file stx_Cache.h.

{ return m_refNumber; };

void stx_CacheElRef::IncRef (  )  [inline]

Definition at line 66 of file stx_Cache.h.

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

{ m_refNumber++; };

Here is the caller graph for this function:

bool stx_CacheElRef::IsLast (  )  [inline]

Definition at line 75 of file stx_Cache.h.

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

{ return m_refNumber == 1; };

Here is the caller graph for this function:


Member Data Documentation

Reimplemented from stx_CacheEl.

Definition at line 77 of file stx_Cache.h.


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