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 195 of file swcache.hxx.
Definition at line 230 of file swcache.hxx.
References SwCache::Get(), SwCacheObj::Lock(), m_pObj, m_pOwner, m_pOwner, and m_rCache.
|
inlineprotected |
Definition at line 243 of file swcache.hxx.
References SwCache::Get(), SwCacheObj::Lock(), m_pObj, m_pOwner, m_pOwner, and m_rCache.
|
virtual |
Definition at line 488 of file swcache.cxx.
References m_pObj, and SwCacheObj::Unlock().
|
inlineprotected |
Definition at line 257 of file swcache.hxx.
References Get_(), and m_pObj.
Referenced by SwFontAccess::Get(), SwFntAccess::Get(), SwBorderAttrAccess::Get(), and SwTextLineAccess::GetPara().
|
private |
Definition at line 494 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 SwBorderAttrAccess, SwFntAccess, SwFontAccess, and SwTextLineAccess.
Referenced by Get_().
|
protected |
Definition at line 202 of file swcache.hxx.
Referenced by Get(), Get_(), SwTextLineAccess::GetPara(), SwTextLineAccess::IsAvailable(), SwCacheAccess(), SwFntAccess::SwFntAccess(), and ~SwCacheAccess().
|
protected |
Definition at line 203 of file swcache.hxx.
Referenced by SwTextLineAccess::GetPara(), SwTextLineAccess::NewObj(), SwFontAccess::NewObj(), SwFntAccess::NewObj(), SwBorderAttrAccess::NewObj(), SwCacheAccess(), and SwFntAccess::SwFntAccess().
|
private |
Definition at line 197 of file swcache.hxx.
Referenced by Get_(), and SwCacheAccess().