#include <stx_Cache.h>


Definition at line 137 of file stx_Cache.h.
Public Member Functions | |
| stx_CacheArray () | |
| stx_CacheArray (int a_usedSize) | |
| stx_CacheEl * | Get (stx_CacheKey_t a_key) |
| void | Insert (stx_CacheEl *a_elem_p) |
| void | RemoveEl (stx_CacheEl *a_elem_p) |
| void | CleanUp () |
| void | CleanUpAndNotify () |
| void | Resize (int a_usedSize) |
| int | GetSize () |
Private Member Functions | |
| UInt32_t | HashFunc (stx_CacheKey_t a_key) |
Private Attributes | |
| stx_CacheVec | m_cacheArray [_MaxCacheSize] |
| int | m_usedSize |
| stx_CacheArray< _MaxCacheSize >::stx_CacheArray | ( | ) | [inline] |
| stx_CacheArray< _MaxCacheSize >::stx_CacheArray | ( | int | a_usedSize | ) | [inline] |
| stx_CacheEl* stx_CacheArray< _MaxCacheSize >::Get | ( | stx_CacheKey_t | a_key | ) | [inline] |
Reimplemented in stx_CacheArrayOfRefEl< _MaxCacheSize >.
Definition at line 147 of file stx_Cache.h.
Referenced by fsc_DataLMgr::DumpTree(), fsc_DataLMgr::FastInsert(), stx_CacheArrayOfRefEl< _MaxCacheSize >::Get(), and fsc_DataLMgr::Remove().
00147 { 00148 return m_cacheArray[HashFunc(a_key)].Get(a_key); 00149 };

| void stx_CacheArray< _MaxCacheSize >::Insert | ( | stx_CacheEl * | a_elem_p | ) | [inline] |
Definition at line 151 of file stx_Cache.h.
References stx_CacheEl::GetCacheKey(), and push_back().
Referenced by fsc_DataLMgr::FastInsert(), stx_CacheArrayOfRefEl< _MaxCacheSize >::Insert(), and fsc_DataLMgr::Remove().
00151 { 00152 m_cacheArray[HashFunc(a_elem_p->GetCacheKey())].push_back(a_elem_p); 00153 };


| void stx_CacheArray< _MaxCacheSize >::RemoveEl | ( | stx_CacheEl * | a_elem_p | ) | [inline] |
Definition at line 159 of file stx_Cache.h.
References stx_CacheEl::GetCacheKey().
Referenced by stx_CacheArrayOfRefEl< _MaxCacheSize >::RemoveEl().
00159 { 00160 m_cacheArray[HashFunc(a_elem_p->GetCacheKey())].RemoveEl(a_elem_p); 00161 };


| void stx_CacheArray< _MaxCacheSize >::CleanUp | ( | ) | [inline] |
Definition at line 163 of file stx_Cache.h.
References stx_CacheVec::CleanUp().
00163 { 00164 stx_CacheVec *ip = m_cacheArray; 00165 stx_CacheVec *ep = &m_cacheArray[m_usedSize]; // addres of past the end 00166 for (; ip < ep; ip++) { 00167 ip->CleanUp(); 00168 } 00169 };

| void stx_CacheArray< _MaxCacheSize >::CleanUpAndNotify | ( | ) | [inline] |
Definition at line 171 of file stx_Cache.h.
References stx_CacheVec::CleanUpAndNotify().
Referenced by fsc_DataLMgr::FlushChangesAndCleanCache().
00171 { 00172 stx_CacheVec *ip = m_cacheArray; 00173 stx_CacheVec *ep = &m_cacheArray[m_usedSize]; // addres of past the end 00174 for (; ip < ep; ip++) { 00175 ip->CleanUpAndNotify(); 00176 } 00177 };


| void stx_CacheArray< _MaxCacheSize >::Resize | ( | int | a_usedSize | ) | [inline] |
Definition at line 179 of file stx_Cache.h.
Referenced by fsc_FRIunpacker::fsc_FRIunpacker(), fsc_DataLMgr::Insert(), i_FSC_i::InsertSplitFromFRIBlock(), and fsc_DataLMgr::Remove().
00179 { (a_usedSize > _MaxCacheSize) 00180 ? m_usedSize = _MaxCacheSize 00181 : (a_usedSize < 4) 00182 ? 4 00183 : m_usedSize = a_usedSize; };

| int stx_CacheArray< _MaxCacheSize >::GetSize | ( | ) | [inline] |
| UInt32_t stx_CacheArray< _MaxCacheSize >::HashFunc | ( | stx_CacheKey_t | a_key | ) | [inline, private] |
Definition at line 187 of file stx_Cache.h.
00187 { 00188 return (UInt32_t)(a_key % m_usedSize); 00189 };
stx_CacheVec stx_CacheArray< _MaxCacheSize >::m_cacheArray[_MaxCacheSize] [private] |
Definition at line 189 of file stx_Cache.h.
int stx_CacheArray< _MaxCacheSize >::m_usedSize [private] |
Definition at line 193 of file stx_Cache.h.
1.5.6