LibreOffice Module sw (master) 1
|
The Cache object base class Users of the Cache must derive a class from the SwCacheObj and store their payload there. More...
#include <swcache.hxx>
Public Member Functions | |
SwCacheObj (const void *pOwner) | |
virtual | ~SwCacheObj () |
const void * | GetOwner () const |
bool | IsOwner (const void *pNew) const |
sal_uInt16 | GetCachePos () const |
bool | IsLocked () const |
void | Lock () |
void | Unlock () |
Protected Attributes | |
const void * | m_pOwner |
Private Member Functions | |
SwCacheObj * | GetNext () |
SwCacheObj * | GetPrev () |
void | SetNext (SwCacheObj *pNew) |
void | SetPrev (SwCacheObj *pNew) |
void | SetCachePos (const sal_uInt16 nNew) |
virtual void | UpdateCachePos () |
Private Attributes | |
SwCacheObj * | m_pNext |
Can do everything. More... | |
SwCacheObj * | m_pPrev |
For the LRU chaining. More... | |
sal_uInt16 | m_nCachePos |
sal_uInt8 | m_nLock |
Position in the Cache array. More... | |
Friends | |
class | SwCache |
The Cache object base class Users of the Cache must derive a class from the SwCacheObj and store their payload there.
Definition at line 136 of file swcache.hxx.
SwCacheObj::SwCacheObj | ( | const void * | pOwner | ) |
Definition at line 457 of file swcache.cxx.
References m_pOwner.
|
virtual |
Definition at line 466 of file swcache.cxx.
|
inline |
Definition at line 173 of file swcache.hxx.
References m_nCachePos.
Referenced by SwCache::DeleteObj(), SwCache::Flush(), SwTextLineAccess::GetPara(), SwCache::Insert(), SwTextFrame::SetPara(), SwFntAccess::SwFntAccess(), and SwTextLine::UpdateCachePos().
|
inlineprivate |
Definition at line 147 of file swcache.hxx.
References m_pNext.
Referenced by SwCache::Check(), SwCache::DeleteObj(), SwCache::Flush(), SwCache::Get(), SwCache::Insert(), SwCache::Next(), SwCache::SetLRUOfst(), and SwCache::ToTop().
|
inline |
Definition at line 170 of file swcache.hxx.
References m_pOwner.
Referenced by SwSubFont::DrawStretchText_(), SwSubFont::DrawText_(), SwSubFont::GetModelPositionForViewPoint_(), SwSubFont::GetTextSize_(), SwCache::Insert(), and SwFntAccess::SwFntAccess().
|
inlineprivate |
Definition at line 148 of file swcache.hxx.
References m_pPrev.
Referenced by SwCache::Check(), SwCache::DeleteObj(), SwCache::Insert(), and SwCache::ToTop().
|
inline |
Definition at line 175 of file swcache.hxx.
References m_nLock.
Referenced by SwCache::DeleteObj(), SwCache::Flush(), and SwCache::Insert().
|
inline |
void SwCacheObj::Lock | ( | ) |
Definition at line 471 of file swcache.cxx.
References m_nLock.
Referenced by SwSubFont::ChgFnt(), SwCacheAccess::Get_(), SwCacheAccess::SwCacheAccess(), and SwFntAccess::SwFntAccess().
|
inlineprivate |
Definition at line 152 of file swcache.hxx.
References m_nCachePos, and UpdateCachePos().
Referenced by SwCache::DeleteObj(), and SwCache::Insert().
|
inlineprivate |
Definition at line 149 of file swcache.hxx.
References m_pNext.
Referenced by SwCache::DeleteObj(), SwCache::Insert(), and SwCache::ToTop().
|
inlineprivate |
Definition at line 150 of file swcache.hxx.
References m_pPrev.
Referenced by SwCache::DeleteObj(), SwCache::Insert(), and SwCache::ToTop().
void SwCacheObj::Unlock | ( | ) |
Definition at line 477 of file swcache.cxx.
References m_nLock.
Referenced by SwTextFrame::CalcHeightOfLastLine(), SwSubFont::ChgFnt(), SwFntCache::Flush(), SwFntAccess::SwFntAccess(), and SwCacheAccess::~SwCacheAccess().
|
inlineprivatevirtual |
Reimplemented in SwTextLine.
Definition at line 160 of file swcache.hxx.
Referenced by SetCachePos().
|
friend |
Definition at line 138 of file swcache.hxx.
|
private |
Definition at line 143 of file swcache.hxx.
Referenced by GetCachePos(), and SetCachePos().
|
private |
Position in the Cache array.
Definition at line 145 of file swcache.hxx.
Referenced by IsLocked(), Lock(), and Unlock().
|
private |
Can do everything.
Definition at line 140 of file swcache.hxx.
|
protected |
Definition at line 163 of file swcache.hxx.
Referenced by GetOwner(), IsOwner(), SwTextLine::UpdateCachePos(), and SwBorderAttrs::~SwBorderAttrs().
|
private |
For the LRU chaining.
Definition at line 141 of file swcache.hxx.