Skip to main content

IRowSelector

IRowSelector

Defines the source and number of rows for the table. More…

#include <IRowSelector.h>

Inherited by IndexSelector, IntervalSelector, TimestampSelector

Public Functions

Name
virtual ~IRowSelector()
virtual size_t getRowCount() const =0
Gets the total number of rows in the table.
virtual TableViewRowDescriptor getDescriptor(size_t row_index) const =0
Gets a descriptor containing the source information for a given row index.

Detailed Description

class IRowSelector;

Defines the source and number of rows for the table.

This interface defines what constitutes a “row” in the table. Different implementations provide different ways to define rows.

Public Functions Documentation

function ~IRowSelector

virtual ~IRowSelector()

function getRowCount

virtual size_t getRowCount() const =0

Gets the total number of rows in the table.

Return: The number of rows.

Reimplemented by: IndexSelector::getRowCount, IntervalSelector::getRowCount, TimestampSelector::getRowCount

function getDescriptor

virtual TableViewRowDescriptor getDescriptor(
    size_t row_index
) const =0

Gets a descriptor containing the source information for a given row index.

Parameters:

  • row_index The index of the row to get the descriptor for.

Return: RowDescriptor containing the source information for the row.

Reimplemented by: IndexSelector::getDescriptor, IntervalSelector::getDescriptor, TimestampSelector::getDescriptor

This method provides reverse lookup capability, allowing clients to trace a row back to its original source definition (e.g., timestamp, interval).


Updated on 2026-11-13 at 20:25:40 +0000