pivot_collection

Defined in header: <orcus/spreadsheet/pivot.hpp>

class pivot_collection

Public Types

using outdir_type = std::variant<std::string_view, std::u16string_view>

Public Functions

pivot_collection(document &doc)
pivot_collection(const pivot_collection&) = delete
~pivot_collection()
void insert_worksheet_cache(std::string_view 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_name – name of the sheet where the source data is.

  • range – range of the source data. Note that the sheet indices are not used.

  • cache – pivot cache instance to store.

void insert_worksheet_cache(std::string_view table_name, std::unique_ptr<pivot_cache> &&cache)

Insert a new pivot cache associated with a table name.

Parameters:
  • table_name – source table name.

  • cache – pivot cache instance to store.

void insert_pivot_table(pivot_table pt)
size_t get_cache_count() const

Count the number of pivot caches currently stored.

Returns:

number of pivot caches currently stored in the document.

const pivot_cache *get_cache(std::string_view sheet_name, const ixion::abs_range_t &range) const
pivot_cache *get_cache(pivot_cache_id_t cache_id)
const pivot_cache *get_cache(pivot_cache_id_t cache_id) const
void dump_debug_state(const outdir_type &outdir) const