LibreOffice Module sw (master) 1
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
SwCacheObj Class Reference

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>

Inheritance diagram for SwCacheObj:
[legend]
Collaboration diagram for SwCacheObj:
[legend]

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

SwCacheObjGetNext ()
 
SwCacheObjGetPrev ()
 
void SetNext (SwCacheObj *pNew)
 
void SetPrev (SwCacheObj *pNew)
 
void SetCachePos (const sal_uInt16 nNew)
 
virtual void UpdateCachePos ()
 

Private Attributes

SwCacheObjm_pNext
 Can do everything. More...
 
SwCacheObjm_pPrev
 For the LRU chaining. More...
 
sal_uInt16 m_nCachePos
 
sal_uInt8 m_nLock
 Position in the Cache array. More...
 

Friends

class SwCache
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SwCacheObj()

SwCacheObj::SwCacheObj ( const void *  pOwner)

Definition at line 457 of file swcache.cxx.

References m_pOwner.

◆ ~SwCacheObj()

SwCacheObj::~SwCacheObj ( )
virtual

Definition at line 466 of file swcache.cxx.

Member Function Documentation

◆ GetCachePos()

sal_uInt16 SwCacheObj::GetCachePos ( ) const
inline

◆ GetNext()

SwCacheObj * SwCacheObj::GetNext ( )
inlineprivate

◆ GetOwner()

const void * SwCacheObj::GetOwner ( ) const
inline

◆ GetPrev()

SwCacheObj * SwCacheObj::GetPrev ( )
inlineprivate

Definition at line 148 of file swcache.hxx.

References m_pPrev.

Referenced by SwCache::Check(), SwCache::DeleteObj(), SwCache::Insert(), and SwCache::ToTop().

◆ IsLocked()

bool SwCacheObj::IsLocked ( ) const
inline

Definition at line 175 of file swcache.hxx.

References m_nLock.

Referenced by SwCache::DeleteObj(), SwCache::Flush(), and SwCache::Insert().

◆ IsOwner()

bool SwCacheObj::IsOwner ( const void *  pNew) const
inline

Definition at line 219 of file swcache.hxx.

References m_pOwner.

Referenced by SwCache::Get().

◆ Lock()

void SwCacheObj::Lock ( )

◆ SetCachePos()

void SwCacheObj::SetCachePos ( const sal_uInt16  nNew)
inlineprivate

Definition at line 152 of file swcache.hxx.

References m_nCachePos, and UpdateCachePos().

Referenced by SwCache::DeleteObj(), and SwCache::Insert().

◆ SetNext()

void SwCacheObj::SetNext ( SwCacheObj pNew)
inlineprivate

Definition at line 149 of file swcache.hxx.

References m_pNext.

Referenced by SwCache::DeleteObj(), SwCache::Insert(), and SwCache::ToTop().

◆ SetPrev()

void SwCacheObj::SetPrev ( SwCacheObj pNew)
inlineprivate

Definition at line 150 of file swcache.hxx.

References m_pPrev.

Referenced by SwCache::DeleteObj(), SwCache::Insert(), and SwCache::ToTop().

◆ Unlock()

void SwCacheObj::Unlock ( )

◆ UpdateCachePos()

virtual void SwCacheObj::UpdateCachePos ( )
inlineprivatevirtual

Reimplemented in SwTextLine.

Definition at line 160 of file swcache.hxx.

Referenced by SetCachePos().

Friends And Related Function Documentation

◆ SwCache

friend class SwCache
friend

Definition at line 138 of file swcache.hxx.

Member Data Documentation

◆ m_nCachePos

sal_uInt16 SwCacheObj::m_nCachePos
private

Definition at line 143 of file swcache.hxx.

Referenced by GetCachePos(), and SetCachePos().

◆ m_nLock

sal_uInt8 SwCacheObj::m_nLock
private

Position in the Cache array.

Definition at line 145 of file swcache.hxx.

Referenced by IsLocked(), Lock(), and Unlock().

◆ m_pNext

SwCacheObj* SwCacheObj::m_pNext
private

Can do everything.

Definition at line 140 of file swcache.hxx.

Referenced by GetNext(), and SetNext().

◆ m_pOwner

const void* SwCacheObj::m_pOwner
protected

◆ m_pPrev

SwCacheObj* SwCacheObj::m_pPrev
private

For the LRU chaining.

Definition at line 141 of file swcache.hxx.

Referenced by GetPrev(), and SetPrev().


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