pivot_cache
Defined in header: <orcus/spreadsheet/pivot.hpp>
-
class pivot_cache
Public Types
-
using fields_type = std::vector<pivot_cache_field_t>
-
using records_type = std::vector<pivot_cache_record_t>
Public Functions
-
pivot_cache(pivot_cache_id_t cache_id, string_pool &sp)
-
~pivot_cache()
-
void insert_fields(fields_type fields)
Bulk-insert all the fields in one step. Note that this will replace any pre-existing fields if any.
- Parameters:
fields – field instances to move into storage.
-
void insert_records(records_type record)
-
size_t get_field_count() const
-
const pivot_cache_field_t *get_field(size_t index) const
Retrieve a field data by its index.
- Parameters:
index – index of the field to retrieve.
- Returns:
pointer to the field instance, or nullptr if the index is out-of-range.
-
pivot_cache_id_t get_id() const
-
const records_type &get_all_records() const
Friends
- friend class detail::debug_state_dumper_pivot_cache
- friend class detail::debug_state_dumper_pivot_table
-
using fields_type = std::vector<pivot_cache_field_t>