11#ifndef OPENXLSX_XLCELLREFERENCE_HPP
12#define OPENXLSX_XLCELLREFERENCE_HPP
16# pragma warning(disable : 4251)
17# pragma warning(disable : 4275)
27#include "OpenXLSX-Exports.hpp"
138 uint32_t
row() const noexcept;
150 uint16_t
column() const noexcept;
224 uint16_t m_column{1};
225 std::string m_cellAddress{
"A1"};
232 {
return lhs.row() == rhs.row() and lhs.column() == rhs.column(); }
244 {
return lhs.row() < rhs.row() or (lhs.row() <= rhs.row() and lhs.column() < rhs.column()); }
void setRow(uint32_t row)
Set the row number for the XLCellReference.
Definition XLCellReference.cpp:163
~XLCellReference()
Destructor. Default implementation used.
friend bool operator<(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Evaluates precedence primarily by row, then by column, allowing cell ranges to be sorted efficiently ...
Definition XLCellReference.hpp:243
XLCellReference(std::string_view cellAddress="")
Constructor taking a cell address as argument.
Definition XLCellReference.cpp:43
friend bool operator>(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Inverts the less-than operator logic to verify strict left-to-right, top-to-bottom traversal dominanc...
Definition XLCellReference.hpp:249
static std::string rowAsString(uint32_t row)
Definition XLCellReference.cpp:225
static uint32_t rowAsNumber(std::string_view row)
Definition XLCellReference.cpp:235
friend bool operator>=(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Asserts whether a cell sequentially follows or occupies the exact same coordinate as another.
Definition XLCellReference.hpp:259
XLCellReference & operator=(XLCellReference &&other) noexcept
static std::string columnAsString(uint16_t column)
Static helper function to convert column number to column letter (e.g. column 1 becomes 'A').
Definition XLCellReference.cpp:246
void setColumn(uint16_t column)
Set the column number of the XLCellReference.
Definition XLCellReference.cpp:180
friend bool operator<=(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Asserts whether a cell sequentially precedes or occupies the exact same coordinate as another.
Definition XLCellReference.hpp:254
XLCellReference & operator++()
Definition XLCellReference.cpp:100
static uint16_t columnAsNumber(std::string_view column)
Static helper function to convert column letter to column number (e.g. column 'A' becomes 1).
Definition XLCellReference.cpp:257
friend bool operator==(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Determines exact coordinate identity, allowing comparisons without resolving their DOM node equivalen...
Definition XLCellReference.hpp:231
XLCellReference(XLCellReference &&other) noexcept
XLCellReference(const XLCellReference &other)
Copy constructor.
XLCellReference & operator--()
Definition XLCellReference.cpp:129
uint32_t row() const noexcept
Get the row number of the XLCellReference.
Definition XLCellReference.cpp:157
friend bool operator!=(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Detects coordinate divergence, effectively identical to !(lhs == rhs).
Definition XLCellReference.hpp:237
std::string address() const
Get the address of the XLCellReference.
Definition XLCellReference.cpp:207
void setRowAndColumn(uint32_t row, uint16_t column)
Set both row and column number of the XLCellReference.
Definition XLCellReference.cpp:193
uint16_t column() const noexcept
Get the column number of the XLCellReference.
Definition XLCellReference.cpp:175
XLCellReference & operator=(const XLCellReference &other)
Assignment operator.
static XLCoordinates coordinatesFromAddress(std::string_view address)
Static helper function to convert cell address to coordinates.
Definition XLCellReference.cpp:279
void setAddress(std::string_view address)
Set the address of the XLCellReference.
Definition XLCellReference.cpp:213
Definition IXLCellProvider.hpp:24
bool operator==(const XLCell &lhs, const XLCell &rhs)
Definition XLCell.hpp:314
bool operator!=(const XLCell &lhs, const XLCell &rhs)
Definition XLCell.hpp:321
bool operator<=(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Asserts whether a cell sequentially precedes or occupies the exact same coordinate as another.
Definition XLCellReference.hpp:254
bool operator<(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Evaluates precedence primarily by row, then by column, allowing cell ranges to be sorted efficiently ...
Definition XLCellReference.hpp:243
bool operator>=(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Asserts whether a cell sequentially follows or occupies the exact same coordinate as another.
Definition XLCellReference.hpp:259
bool operator>(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Inverts the less-than operator logic to verify strict left-to-right, top-to-bottom traversal dominanc...
Definition XLCellReference.hpp:249
Definition XLCellIterator.hpp:131
Definition XLCellReference.hpp:35
uint16_t column
Definition XLCellReference.hpp:37
uint32_t row
Definition XLCellReference.hpp:36