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 voidGetOwner () const
 
bool IsOwner (const void *pNew) const
 
sal_uInt16 GetCachePos () const
 
bool IsLocked () const
 
void Lock ()
 
void Unlock ()
 

Protected Attributes

const voidm_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 133 of file swcache.hxx.

Constructor & Destructor Documentation

SwCacheObj::SwCacheObj ( const void pOwner)

Definition at line 463 of file swcache.cxx.

SwCacheObj::~SwCacheObj ( )
virtual

Definition at line 472 of file swcache.cxx.

Member Function Documentation

sal_uInt16 SwCacheObj::GetCachePos ( ) const
inline
SwCacheObj* SwCacheObj::GetNext ( )
inlineprivate
const void* SwCacheObj::GetOwner ( ) const
inline
SwCacheObj* SwCacheObj::GetPrev ( )
inlineprivate

Definition at line 145 of file swcache.hxx.

References m_pPrev.

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

bool SwCacheObj::IsLocked ( ) const
inline

Definition at line 172 of file swcache.hxx.

References m_nLock.

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

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

Definition at line 216 of file swcache.hxx.

References m_pOwner.

Referenced by SwCache::Get().

void SwCacheObj::Lock ( )
void SwCacheObj::SetCachePos ( const sal_uInt16  nNew)
inlineprivate

Definition at line 149 of file swcache.hxx.

References UpdateCachePos().

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

void SwCacheObj::SetNext ( SwCacheObj pNew)
inlineprivate

Definition at line 146 of file swcache.hxx.

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

void SwCacheObj::SetPrev ( SwCacheObj pNew)
inlineprivate

Definition at line 147 of file swcache.hxx.

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

void SwCacheObj::Unlock ( )
virtual void SwCacheObj::UpdateCachePos ( )
inlineprivatevirtual

Reimplemented in SwTextLine.

Definition at line 157 of file swcache.hxx.

Referenced by SetCachePos().

Friends And Related Function Documentation

friend class SwCache
friend

Definition at line 135 of file swcache.hxx.

Member Data Documentation

sal_uInt16 SwCacheObj::m_nCachePos
private

Definition at line 140 of file swcache.hxx.

Referenced by GetCachePos().

sal_uInt8 SwCacheObj::m_nLock
private

Position in the Cache array.

Definition at line 142 of file swcache.hxx.

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

SwCacheObj* SwCacheObj::m_pNext
private

Can do everything.

Definition at line 137 of file swcache.hxx.

Referenced by GetNext().

const void* SwCacheObj::m_pOwner
protected
SwCacheObj* SwCacheObj::m_pPrev
private

For the LRU chaining.

Definition at line 138 of file swcache.hxx.

Referenced by GetPrev().


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