Public Member Functions

stx_CacheArrayOfRefEl< _MaxCacheSize > Class Template Reference
[Common, basic classes, functions and types]

#include <stx_Cache.h>

Inheritance diagram for stx_CacheArrayOfRefEl< _MaxCacheSize >:
Inheritance graph
[legend]
Collaboration diagram for stx_CacheArrayOfRefEl< _MaxCacheSize >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

stx_CacheElRefGet (stx_CacheKey_t a_key)
void Insert (stx_CacheElRef *a_elem_p)
void RemoveEl (stx_CacheElRef *a_elem_p)

Detailed Description

template<int _MaxCacheSize>
class stx_CacheArrayOfRefEl< _MaxCacheSize >

Definition at line 213 of file stx_Cache.h.


Member Function Documentation

template<int _MaxCacheSize>
stx_CacheElRef* stx_CacheArrayOfRefEl< _MaxCacheSize >::Get ( stx_CacheKey_t  a_key  )  [inline]

Reimplemented from stx_CacheArray< _MaxCacheSize >.

Definition at line 215 of file stx_Cache.h.

References stx_CacheArray< _MaxCacheSize >::Get(), stx_CacheElRef::IncRef(), and NULL.

Referenced by fsc_nsCreateDirectoryObj(), and fsc_nsCreateElementObj().

                                              {
        stx_CacheElRef* el = static_cast<stx_CacheElRef*>(stx_CacheArray<_MaxCacheSize>::Get(a_key));
        if (el != NULL) {
            el->IncRef();
        }
        return el;
    };

Here is the call graph for this function:

Here is the caller graph for this function:

template<int _MaxCacheSize>
void stx_CacheArrayOfRefEl< _MaxCacheSize >::Insert ( stx_CacheElRef a_elem_p  )  [inline]

Definition at line 223 of file stx_Cache.h.

References stx_CacheElRef::IncRef(), and stx_CacheArray< _MaxCacheSize >::Insert().

Referenced by fsc_nsCreateDirectoryObj(), and fsc_nsCreateElementObj().

                                         {
        a_elem_p->IncRef();
        stx_CacheArray<_MaxCacheSize>::Insert(a_elem_p);
    };

Here is the call graph for this function:

Here is the caller graph for this function:

template<int _MaxCacheSize>
void stx_CacheArrayOfRefEl< _MaxCacheSize >::RemoveEl ( stx_CacheElRef a_elem_p  )  [inline]

Definition at line 232 of file stx_Cache.h.

References stx_CacheElRef::DecRef(), stx_CacheElRef::IsLast(), and stx_CacheArray< _MaxCacheSize >::RemoveEl().

Referenced by fsc_nsRemoveElementObj().

                                           {
        if (a_elem_p->IsLast()) {
            stx_CacheArray<_MaxCacheSize>::RemoveEl(a_elem_p);
        }
        a_elem_p->DecRef();
    };

Here is the call graph for this function:

Here is the caller graph for this function:


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