DataArrayIndex
DataArrayIndex
Strong type for indices into data arrays within time series objects. More…
#include <StrongTimeTypes.hpp>
Public Functions
| Name | |
|---|---|
| DataArrayIndex(size_t value) | |
| size_t | getValue() const |
| bool | operator==(DataArrayIndex const & other) const |
| bool | operator!=(DataArrayIndex const & other) const |
| bool | operator<(DataArrayIndex const & other) const |
| bool | operator<=(DataArrayIndex const & other) const |
| bool | operator>(DataArrayIndex const & other) const |
| bool | operator>=(DataArrayIndex const & other) const |
| DataArrayIndex | operator+(size_t offset) const |
| DataArrayIndex | operator-(size_t offset) const |
| size_t | operator-(DataArrayIndex const & other) const |
| DataArrayIndex & | operator++() |
| DataArrayIndex | operator++(int ) |
| DataArrayIndex & | operator–() |
| DataArrayIndex | operator–(int ) |
Detailed Description
class DataArrayIndex;Strong type for indices into data arrays within time series objects.
Represents direct indices into the _data vector of time series classes. This is distinct from TimeFrameIndex (which indexes into time coordinate space) and from time coordinates themselves. Use this when you need to access data by its position in the storage array, regardless of time semantics.
Public Functions Documentation
function DataArrayIndex
inline explicit DataArrayIndex(
size_t value
)function getValue
inline size_t getValue() constfunction operator==
inline bool operator==(
DataArrayIndex const & other
) constfunction operator!=
inline bool operator!=(
DataArrayIndex const & other
) constfunction operator<
inline bool operator<(
DataArrayIndex const & other
) constfunction operator<=
inline bool operator<=(
DataArrayIndex const & other
) constfunction operator>
inline bool operator>(
DataArrayIndex const & other
) constfunction operator>=
inline bool operator>=(
DataArrayIndex const & other
) constfunction operator+
inline DataArrayIndex operator+(
size_t offset
) constfunction operator-
inline DataArrayIndex operator-(
size_t offset
) constfunction operator-
inline size_t operator-(
DataArrayIndex const & other
) constfunction operator++
inline DataArrayIndex & operator++()function operator++
inline DataArrayIndex operator++(
int
)function operator–
inline DataArrayIndex & operator--()function operator–
inline DataArrayIndex operator--(
int
)Updated on 2026-11-13 at 20:25:41 +0000