ClikaRT::tables::Table::Row
class
Header: ClikaRT/tables/table.h
A lightweight read cursor over one row: just {table, row index}, no copy of the row's data. Typed getters WIDEN to the requested type: any integer (or Bool) column reads through get_int, any float column through get_double, a String column through get_string. Each raises ClikaRT::Error on a missing column, a null cell, or a column whose dtype the getter can't produce (e.g. get_int on a float column). Obtain a Row from rows() or row(i); the frame must outlive it.
Member functions
Row()
Row(const Table* table, std::int64_t row) noexcept
Bind a cursor to table's row row, normally obtained via rows() / row(i).
Declared in ClikaRT/tables/table.h, line 129
index()
std::int64_t index() const noexcept
The 0-based row index this cursor points at.
Declared in ClikaRT/tables/table.h, line 132
get_double()
double get_double(std::string_view column) const
The cell as double (float columns; see the class note's widening law).
Throws
ClikaRT::Error: on a missing column, a null cell, or a column this getter cannot produce.
Declared in ClikaRT/tables/table.h, line 138
get_int()
std::int64_t get_int(std::string_view column) const
The cell as a signed 64-bit integer (integer / Bool columns).
Throws
ClikaRT::Error: asget_double.
Declared in ClikaRT/tables/table.h, line 141
get_string()
std::string get_string(std::string_view column) const
The cell of a String column.
Throws
ClikaRT::Error: asget_double.
Declared in ClikaRT/tables/table.h, line 144
is_null()
bool is_null(std::string_view column) const
True if the column is absent OR the cell is null (never raises).
Declared in ClikaRT/tables/table.h, line 146