IndexSelector
IndexSelector
Row selector that uses explicit indices. More…
#include <IRowSelector.h>
Inherits from IRowSelector
Public Functions
| Name | |
|---|---|
| IndexSelector(std::vector< size_t > indices) Constructs an IndexSelector with the given indices. |
|
| virtual size_t | getRowCount() const override Gets the total number of rows in the table. |
| virtual TableViewRowDescriptor | getDescriptor(size_t row_index) const override Gets a descriptor for the specified row index. |
| const std::vector< size_t > & | getIndices() const Gets the indices used for row selection. |
Additional inherited members
Public Functions inherited from IRowSelector
| Name | |
|---|---|
| virtual | ~IRowSelector() |
Detailed Description
class IndexSelector;Row selector that uses explicit indices.
This implementation defines rows based on a vector of indices.
Public Functions Documentation
function IndexSelector
explicit IndexSelector(
std::vector< size_t > indices
)Constructs an IndexSelector with the given indices.
Parameters:
- indices Vector of indices to use for row selection.
function getRowCount
virtual size_t getRowCount() const overrideGets the total number of rows in the table.
Return: The number of rows (size of indices vector).
Reimplements: IRowSelector::getRowCount
function getDescriptor
virtual TableViewRowDescriptor getDescriptor(
size_t row_index
) const overrideGets a descriptor for the specified row index.
Parameters:
- row_index The index of the row to get the descriptor for.
Return: TableViewRowDescriptor containing the source index for the row.
Reimplements: IRowSelector::getDescriptor
function getIndices
const std::vector< size_t > & getIndices() constGets the indices used for row selection.
Return: Const reference to the indices vector.
Updated on 2026-11-13 at 20:25:40 +0000