LibreOffice Module sw (master) 1
|
Access class for the Cache. More...
#include <swcache.hxx>
Public Member Functions | |
virtual | ~SwCacheAccess () |
Protected Member Functions | |
virtual SwCacheObj * | NewObj ()=0 |
Can be use in NewObj. More... | |
SwCacheObj * | Get (bool isDuplicateOwnerAllowed) |
SwCacheAccess (SwCache &rCache, const void *pOwner, bool bSeek) | |
SwCacheAccess (SwCache &rCache, const void *nCacheId, const sal_uInt16 nIndex) | |
Protected Attributes | |
SwCacheObj * | m_pObj |
const void * | m_pOwner |
Private Member Functions | |
void | Get_ (bool isDuplicateOwnerAllowed) |
Private Attributes | |
SwCache & | m_rCache |
Access class for the Cache.
The Cache object is created in the ctor. If the Cache does not return one, the member is set to 0 and one is created on the Get() and added to the Cache (if possible). Cache users must derive a class from SwCacheAccess in order to guarantee type safety. The base class should always be called for the Get(). A derived Get() should only ever guarantee type safety. Cache objects are always locked for the instance's life time.
Definition at line 197 of file swcache.hxx.
|
inlineprotected |
Definition at line 232 of file swcache.hxx.
References SwCache::Get(), SwCacheObj::Lock(), m_pObj, m_pOwner, m_pOwner, and m_rCache.
|
inlineprotected |
Definition at line 245 of file swcache.hxx.
References SwCache::Get(), SwCacheObj::Lock(), m_pObj, m_pOwner, m_pOwner, m_rCache, and nIndex.
|
virtual |
Definition at line 484 of file swcache.cxx.
References m_pObj, and SwCacheObj::Unlock().
|
inlineprotected |
Definition at line 259 of file swcache.hxx.
References Get_(), and m_pObj.
Referenced by SwFntAccess::Get(), SwBorderAttrAccess::Get(), SwFontAccess::Get(), and SwTextLineAccess::GetPara().
|
private |
Definition at line 490 of file swcache.cxx.
References SwCache::Insert(), SwCacheObj::Lock(), m_pObj, m_rCache, and NewObj().
Referenced by Get().
|
protectedpure virtual |
Can be use in NewObj.
Implemented in SwFntAccess, SwBorderAttrAccess, SwFontAccess, and SwTextLineAccess.
Referenced by Get_().
|
protected |
Definition at line 204 of file swcache.hxx.
Referenced by Get(), Get_(), SwTextLineAccess::GetPara(), SwTextLineAccess::IsAvailable(), SwCacheAccess(), SwFntAccess::SwFntAccess(), and ~SwCacheAccess().
|
protected |
Definition at line 205 of file swcache.hxx.
Referenced by SwTextLineAccess::GetPara(), SwFntAccess::NewObj(), SwBorderAttrAccess::NewObj(), SwFontAccess::NewObj(), SwTextLineAccess::NewObj(), SwCacheAccess(), and SwFntAccess::SwFntAccess().
|
private |
Definition at line 199 of file swcache.hxx.
Referenced by Get_(), and SwCacheAccess().