Skip to main content

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() const

function operator==

inline bool operator==(
    DataArrayIndex const & other
) const

function operator!=

inline bool operator!=(
    DataArrayIndex const & other
) const

function operator<

inline bool operator<(
    DataArrayIndex const & other
) const

function operator<=

inline bool operator<=(
    DataArrayIndex const & other
) const

function operator>

inline bool operator>(
    DataArrayIndex const & other
) const

function operator>=

inline bool operator>=(
    DataArrayIndex const & other
) const

function operator+

inline DataArrayIndex operator+(
    size_t offset
) const

function operator-

inline DataArrayIndex operator-(
    size_t offset
) const

function operator-

inline size_t operator-(
    DataArrayIndex const & other
) const

function 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