---
title: "ClikaRT::tables::Table::Row"
sidebar_label: "Table::Row"
description: "A lightweight read cursor over one row: just {table, row index}, no copy of the row's data."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--class">class</span>

**Header:** `ClikaRT/tables/table.h`

A lightweight read cursor over one row: just `{table, `[`row`](./Table.md#row)` `[`index`](./Table.Row.md#index)`}`, no copy of the row's data. Typed getters WIDEN to the requested type: any integer (or Bool) column reads through [`get_int`](./Table.Row.md#get_int), any float column through [`get_double`](./Table.Row.md#get_double), a String column through [`get_string`](./Table.Row.md#get_string). Each raises [`ClikaRT::Error`](../Error.md) on a missing column, a null cell, or a column whose dtype the getter can't produce (e.g. [`get_int`](./Table.Row.md#get_int) on a float column). Obtain a [Row](./Table.Row.md) from [`rows()`](./Table.md#rows) or `row(i)`; the frame must outlive it.

## Member functions

### Row() {#Row}

<div class="api-signature">

**`Row`**(`const` [`Table`](./Table.md)`*` `table`, `std::int64_t` `row`) `noexcept`

</div>

Bind a cursor to `table`'s row [`row`](./Table.md#row), normally obtained via [`rows()`](./Table.md#rows) / `row(i)`.

<div class="api-declared">

Declared in `ClikaRT/tables/table.h`, line 129

</div>

### index() {#index}

<div class="api-signature">

`std::int64_t` **`index`**() `const noexcept`

</div>

The 0-based row index this cursor points at.

<div class="api-declared">

Declared in `ClikaRT/tables/table.h`, line 132

</div>

### get\_double() {#get_double}

<div class="api-signature">

`double` **`get_double`**(`std::string_view` `column`) `const`

</div>

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.

<div class="api-declared">

Declared in `ClikaRT/tables/table.h`, line 138

</div>

### get\_int() {#get_int}

<div class="api-signature">

`std::int64_t` **`get_int`**(`std::string_view` `column`) `const`

</div>

The cell as a signed 64-bit integer (integer / Bool columns).

**Throws**

- `ClikaRT::Error`: as [`get_double`](./Table.Row.md#get_double).

<div class="api-declared">

Declared in `ClikaRT/tables/table.h`, line 141

</div>

### get\_string() {#get_string}

<div class="api-signature">

`std::string` **`get_string`**(`std::string_view` `column`) `const`

</div>

The cell of a String column.

**Throws**

- `ClikaRT::Error`: as [`get_double`](./Table.Row.md#get_double).

<div class="api-declared">

Declared in `ClikaRT/tables/table.h`, line 144

</div>

### is\_null() {#is_null}

<div class="api-signature">

`bool` **`is_null`**(`std::string_view` `column`) `const`

</div>

True if the column is absent OR the cell is null (never raises).

<div class="api-declared">

Declared in `ClikaRT/tables/table.h`, line 146

</div>
