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 derrive 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)
 

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 derrive a class from the SwCacheObj and store their payload there.

Definition at line 135 of file swcache.hxx.

Constructor & Destructor Documentation

SwCacheObj::SwCacheObj ( const void pOwner)

Definition at line 445 of file swcache.cxx.

SwCacheObj::~SwCacheObj ( )
virtual

Definition at line 454 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 147 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 166 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 214 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 151 of file swcache.hxx.

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

void SwCacheObj::SetNext ( SwCacheObj pNew)
inlineprivate

Definition at line 148 of file swcache.hxx.

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

void SwCacheObj::SetPrev ( SwCacheObj pNew)
inlineprivate

Definition at line 149 of file swcache.hxx.

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

void SwCacheObj::Unlock ( )

Friends And Related Function Documentation

friend class SwCache
friend

Definition at line 137 of file swcache.hxx.

Member Data Documentation

sal_uInt16 SwCacheObj::m_nCachePos
private

Definition at line 142 of file swcache.hxx.

Referenced by GetCachePos().

sal_uInt8 SwCacheObj::m_nLock
private

Position in the Cache array.

Definition at line 144 of file swcache.hxx.

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

SwCacheObj* SwCacheObj::m_pNext
private

Can do everything.

Definition at line 139 of file swcache.hxx.

Referenced by GetNext().

const void* SwCacheObj::m_pOwner
protected

Definition at line 154 of file swcache.hxx.

Referenced by GetOwner(), IsOwner(), and SwBorderAttrs::~SwBorderAttrs().

SwCacheObj* SwCacheObj::m_pPrev
private

For the LRU chaining.

Definition at line 140 of file swcache.hxx.

Referenced by GetPrev().


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