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.


Detailed Description

template<int _MaxCacheSize>
class stx_CacheArrayOfRefEl< _MaxCacheSize >

Definition at line 199 of file stx_Cache.h.


Public Member Functions

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

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 201 of file stx_Cache.h.

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

Referenced by fsc_nsCreateDirectoryObj(), and fsc_nsCreateElementObj().

00201                                               {
00202         stx_CacheElRef* el = static_cast<stx_CacheElRef*>(stx_CacheArray<_MaxCacheSize>::Get(a_key));
00203         if (el != NULL) {
00204             el->IncRef();
00205         }
00206         return el;
00207     };

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 209 of file stx_Cache.h.

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

Referenced by fsc_nsCreateDirectoryObj(), and fsc_nsCreateElementObj().

00209                                          {
00210         a_elem_p->IncRef();
00211         stx_CacheArray<_MaxCacheSize>::Insert(a_elem_p);
00212     };

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 218 of file stx_Cache.h.

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

Referenced by fsc_nsRemoveElementObj().

00218                                            {
00219         if (a_elem_p->IsLast()) {
00220             stx_CacheArray<_MaxCacheSize>::RemoveEl(a_elem_p);
00221         }
00222         a_elem_p->DecRef();
00223     };

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:

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