tables

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

class tables

Public Functions

tables() = delete
tables(const tables&) = delete
~tables()
tables &operator=(const tables&) = delete
void insert(std::unique_ptr<table_t> p)

Insert a new table instance.

Parameters:

p – Table instance to insert.

std::weak_ptr<const table_t> get(std::string_view name) const

Get a structure containing properties of a named table.

Parameters:

name – Name of the table.

Returns:

Weak pointer to the structure containing the properties of a named table, or an empty pointer if no such table exists for the given name.

std::map<std::string_view, std::weak_ptr<const table_t>> get_by_sheet(sheet_t pos) const

Get all tables belonging to a certain sheet by sheet index.

Parameters:

pos – 0-based sheet index.

Returns:

Map containing pointers to all table instances belonging to specified sheet and their respective names as keys.

Friends

friend struct detail::document_impl