LibreOffice Module sc (master) 1
|
Stores and manages all caches from internal sheets. More...
#include <dpobject.hxx>
Public Member Functions | |
SheetCaches (ScDocument &rDoc) | |
bool | hasCache (const ScRange &rRange) const |
const ScDPCache * | getCache (const ScRange &rRange, const ScDPDimensionSaveData *pDimData) |
SC_DLLPUBLIC size_t | size () const |
void | updateReference (UpdateRefMode eMode, const ScRange &r, SCCOL nDx, SCROW nDy, SCTAB nDz) |
SC_DLLPUBLIC ScDPCache * | getExistingCache (const ScRange &rRange) |
SC_DLLPUBLIC const ScDPCache * | getExistingCache (const ScRange &rRange) const |
void | updateCache (const ScRange &rRange, o3tl::sorted_vector< ScDPObject * > &rRefs) |
bool | remove (const ScDPCache *p) |
SC_DLLPUBLIC const std::vector< ScRange > & | getAllRanges () const |
Private Types | |
typedef std::map< size_t, std::unique_ptr< ScDPCache > > | CachesType |
typedef std::vector< ScRange > | RangeIndexType |
Private Attributes | |
CachesType | m_Caches |
RangeIndexType | maRanges |
ScDocument & | mrDoc |
Friends | |
class | ScDPCollection |
Stores and manages all caches from internal sheets.
Definition at line 291 of file dpobject.hxx.
|
private |
Definition at line 294 of file dpobject.hxx.
|
private |
Definition at line 295 of file dpobject.hxx.
ScDPCollection::SheetCaches::SheetCaches | ( | ScDocument & | rDoc | ) |
Definition at line 2915 of file dpobject.cxx.
const std::vector< ScRange > & ScDPCollection::SheetCaches::getAllRanges | ( | ) | const |
Definition at line 3127 of file dpobject.cxx.
Referenced by XclExpXmlPivotTableManager::Initialize().
const ScDPCache * ScDPCollection::SheetCaches::getCache | ( | const ScRange & | rRange, |
const ScDPDimensionSaveData * | pDimData | ||
) |
Definition at line 2958 of file dpobject.cxx.
References ScRangeList::begin(), ScRangeList::end(), ScDPCollection::mrDoc, nIndex, p, ScRangeList::push_back(), ScDPCollection::ScDPCache, ScRangeList::size(), and ScDPDimensionSaveData::WriteToCache().
Referenced by ScSheetSourceDesc::CreateCache(), and ScDPCollection::ReloadGroupsInCache().
Definition at line 3008 of file dpobject.cxx.
References ScRangeList::begin(), ScRangeList::end(), and nIndex.
Referenced by XclExpXmlPivotTableManager::Initialize(), and ScDPCollection::ReloadGroupsInCache().
Definition at line 3027 of file dpobject.cxx.
References ScRangeList::begin(), ScRangeList::end(), and nIndex.
bool ScDPCollection::SheetCaches::hasCache | ( | const ScRange & | rRange | ) | const |
Definition at line 2946 of file dpobject.cxx.
References ScRangeList::begin(), ScRangeList::end(), and nIndex.
Referenced by ScDPCollection::ReloadCache(), and ScDPCollection::ReloadGroupsInCache().
bool ScDPCollection::SheetCaches::remove | ( | const ScDPCache * | p | ) |
Definition at line 3113 of file dpobject.cxx.
Referenced by ScDPCollection::RemoveCache().
size_t ScDPCollection::SheetCaches::size | ( | ) | const |
Definition at line 3046 of file dpobject.cxx.
void ScDPCollection::SheetCaches::updateCache | ( | const ScRange & | rRange, |
o3tl::sorted_vector< ScDPObject * > & | rRefs | ||
) |
Definition at line 3082 of file dpobject.cxx.
References ScRangeList::begin(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), ScRangeList::end(), ScDPCache::GetAllReferences(), ScDPCache::InitFromDoc(), ScDPCollection::mrDoc, nIndex, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::swap().
Referenced by ScDPCollection::ReloadCache().
void ScDPCollection::SheetCaches::updateReference | ( | UpdateRefMode | eMode, |
const ScRange & | r, | ||
SCCOL | nDx, | ||
SCROW | nDy, | ||
SCTAB | nDz | ||
) |
Definition at line 3051 of file dpobject.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), eMode, ScRangeList::empty(), ScDPCollection::mrDoc, ScAddress::Row(), ScAddress::Tab(), ScRefUpdate::Update(), and UR_NOTHING.
Referenced by ScDPCollection::UpdateReference().
|
friend |
Definition at line 293 of file dpobject.hxx.
|
private |
Definition at line 296 of file dpobject.hxx.
|
private |
Definition at line 297 of file dpobject.hxx.
|
private |
Definition at line 298 of file dpobject.hxx.