table_handler

Defined in header: <ixion/interface/table_handler.hpp>

class table_handler

Public Functions

virtual ~table_handler()
virtual abs_range_t get_range(const abs_address_t &pos, std::string_view column_first, std::string_view column_last, table_areas_t areas) const = 0

Get the data range associated with a given column name. The current position is used to infer which table to use.

The string views passed in are valid only for the duration of the call; implementations must copy if they need to retain them.

Parameters:
  • pos – current cell position.

  • column_first – name of the starting column within the table.

  • column_last – name of the ending column within the table, or an empty view if it’s a single column.

  • areas – area specifier value, which may consist of one or more values of table_area_t.

Returns:

referenced data range.

virtual abs_range_t get_range(std::string_view table, std::string_view column_first, std::string_view column_last, table_areas_t areas) const = 0

Get the data range associated with given table and column names.

The string views passed in are valid only for the duration of the call; implementations must copy if they need to retain them.

Parameters:
  • table – name of the table.

  • column_first – name of the starting column within the table.

  • column_last – name of the ending column within the table, or an empty view if it’s a single column.

  • areas – area specifier value, which may consist of one or more values of table_area_t.

Returns:

referenced data range.