Orcus
Public Member Functions | List of all members
orcus::spreadsheet::pivot_collection Class Reference

Public Member Functions

 pivot_collection (document &doc)
 
void insert_worksheet_cache (const pstring &sheet_name, const ixion::abs_range_t &range, std::unique_ptr< pivot_cache > &&cache)
 
size_t get_cache_count () const
 
const pivot_cacheget_cache (const pstring &sheet_name, const ixion::abs_range_t &range) const
 
pivot_cacheget_cache (pivot_cache_id_t cache_id)
 
const pivot_cacheget_cache (pivot_cache_id_t cache_id) const
 

Member Function Documentation

§ get_cache_count()

size_t orcus::spreadsheet::pivot_collection::get_cache_count ( ) const

Count the number of pivot caches currently stored.

Returns
number of pivot caches currently stored in the document.

§ insert_worksheet_cache()

void orcus::spreadsheet::pivot_collection::insert_worksheet_cache ( const pstring sheet_name,
const ixion::abs_range_t &  range,
std::unique_ptr< pivot_cache > &&  cache 
)

Insert a new pivot cache associated with a worksheet source.

Parameters
sheet_namename of the sheet where the source data is.
rangerange of the source data. Note that the sheet indices are not used.