IntervalSelector
IntervalSelector
Row selector that uses intervals. More…
#include <IRowSelector.h>
Inherits from IRowSelector
Public Functions
| Name | |
|---|---|
| IntervalSelector(std::vector< TimeFrameInterval > intervals, std::shared_ptr< TimeFrame > timeFrame) Constructs an IntervalSelector with the given intervals. |
|
| 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< TimeFrameInterval > & | getIntervals() const Gets the intervals used for row selection. |
| std::shared_ptr< TimeFrame > | getTimeFrame() const Gets the TimeFrame key used for this selector. |
Additional inherited members
Public Functions inherited from IRowSelector
| Name | |
|---|---|
| virtual | ~IRowSelector() |
Detailed Description
class IntervalSelector;Row selector that uses intervals.
This implementation defines rows based on a vector of TimeFrameInterval objects.
Public Functions Documentation
function IntervalSelector
explicit IntervalSelector(
std::vector< TimeFrameInterval > intervals,
std::shared_ptr< TimeFrame > timeFrame
)Constructs an IntervalSelector with the given intervals.
Parameters:
- intervals Vector of TimeFrameInterval objects to use for row selection.
- timeFrame Shared pointer to the TimeFrame object that provides the mapping between intervals and indices.
function getRowCount
virtual size_t getRowCount() const overrideGets the total number of rows in the table.
Return: The number of rows (size of intervals 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 interval for the row.
Reimplements: IRowSelector::getDescriptor
function getIntervals
const std::vector< TimeFrameInterval > & getIntervals() constGets the intervals used for row selection.
Return: Const reference to the intervals vector.
function getTimeFrame
inline std::shared_ptr< TimeFrame > getTimeFrame() constGets the TimeFrame key used for this selector.
Return: Shared pointer to the TimeFrame object.
Updated on 2026-11-13 at 20:25:40 +0000