Orcus
Loading...
Searching...
No Matches
orcus::spreadsheet::tables Class Reference

Public Member Functions

 tables (const tables &)=delete
 
tablesoperator= (const tables &)=delete
 
void insert (std::unique_ptr< table_t > p)
 
std::weak_ptr< const table_tget (std::string_view name) const
 
std::map< std::string_view, std::weak_ptr< const table_t > > get_by_sheet (sheet_t pos) const
 

Friends

struct detail::document_impl
 

Member Function Documentation

◆ get()

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

Get a structure containing properties of a named table.

Parameters
nameName 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.

◆ get_by_sheet()

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

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

Parameters
pos0-based sheet index.
Returns
Map containing pointers to all table instances belonging to specified sheet and their respective names as keys.

◆ insert()

void orcus::spreadsheet::tables::insert ( std::unique_ptr< table_t > p)

Insert a new table instance.

Parameters
pTable instance to insert.