LibreOffice Module sc (master) 1
Public Member Functions | Private Types | Private Attributes | Friends | List of all members
ScDPCollection::SheetCaches Class Reference

Stores and manages all caches from internal sheets. More...

#include <dpobject.hxx>

Collaboration diagram for ScDPCollection::SheetCaches:
[legend]

Public Member Functions

 SheetCaches (ScDocument &rDoc)
 
bool hasCache (const ScRange &rRange) const
 
const ScDPCachegetCache (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 ScDPCachegetExistingCache (const ScRange &rRange)
 
SC_DLLPUBLIC const ScDPCachegetExistingCache (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< ScRangeRangeIndexType
 

Private Attributes

CachesType m_Caches
 
RangeIndexType maRanges
 
ScDocumentmrDoc
 

Friends

class ScDPCollection
 

Detailed Description

Stores and manages all caches from internal sheets.

Definition at line 291 of file dpobject.hxx.

Member Typedef Documentation

◆ CachesType

typedef std::map<size_t, std::unique_ptr<ScDPCache> > ScDPCollection::SheetCaches::CachesType
private

Definition at line 294 of file dpobject.hxx.

◆ RangeIndexType

Definition at line 295 of file dpobject.hxx.

Constructor & Destructor Documentation

◆ SheetCaches()

ScDPCollection::SheetCaches::SheetCaches ( ScDocument rDoc)

Definition at line 2915 of file dpobject.cxx.

Member Function Documentation

◆ getAllRanges()

const std::vector< ScRange > & ScDPCollection::SheetCaches::getAllRanges ( ) const

Definition at line 3127 of file dpobject.cxx.

Referenced by XclExpXmlPivotTableManager::Initialize().

◆ getCache()

const ScDPCache * ScDPCollection::SheetCaches::getCache ( const ScRange rRange,
const ScDPDimensionSaveData pDimData 
)

◆ getExistingCache() [1/2]

ScDPCache * ScDPCollection::SheetCaches::getExistingCache ( const ScRange rRange)

◆ getExistingCache() [2/2]

const ScDPCache * ScDPCollection::SheetCaches::getExistingCache ( const ScRange rRange) const

Definition at line 3027 of file dpobject.cxx.

References ScRangeList::begin(), ScRangeList::end(), and nIndex.

◆ hasCache()

bool ScDPCollection::SheetCaches::hasCache ( const ScRange rRange) const

◆ remove()

bool ScDPCollection::SheetCaches::remove ( const ScDPCache p)

Definition at line 3113 of file dpobject.cxx.

References idx, and p.

Referenced by ScDPCollection::RemoveCache().

◆ size()

size_t ScDPCollection::SheetCaches::size ( ) const

Definition at line 3046 of file dpobject.cxx.

◆ updateCache()

void ScDPCollection::SheetCaches::updateCache ( const ScRange rRange,
o3tl::sorted_vector< ScDPObject * > &  rRefs 
)

◆ updateReference()

void ScDPCollection::SheetCaches::updateReference ( UpdateRefMode  eMode,
const ScRange r,
SCCOL  nDx,
SCROW  nDy,
SCTAB  nDz 
)

Friends And Related Function Documentation

◆ ScDPCollection

friend class ScDPCollection
friend

Definition at line 293 of file dpobject.hxx.

Member Data Documentation

◆ m_Caches

CachesType ScDPCollection::SheetCaches::m_Caches
private

Definition at line 296 of file dpobject.hxx.

◆ maRanges

RangeIndexType ScDPCollection::SheetCaches::maRanges
private

Definition at line 297 of file dpobject.hxx.

◆ mrDoc

ScDocument& ScDPCollection::SheetCaches::mrDoc
private

Definition at line 298 of file dpobject.hxx.


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