1#ifndef OPENXLSX_XLCELLREFERENCE_HPP
2#define OPENXLSX_XLCELLREFERENCE_HPP
6# pragma warning(disable : 4251)
7# pragma warning(disable : 4275)
17#include "OpenXLSX-Exports.hpp"
128 uint32_t row() const noexcept;
134 void setRow(uint32_t row);
140 uint16_t column() const noexcept;
146 void setColumn(uint16_t column);
153 void setRowAndColumn(uint32_t row, uint16_t column);
159 std::
string address() const;
166 void setAddress(
std::string_view address);
179 static
std::
string rowAsString(uint32_t row);
186 static uint32_t rowAsNumber(
std::string_view row);
193 static
std::
string columnAsString(uint16_t column);
200 static uint16_t columnAsNumber(
std::string_view column);
214 uint16_t m_column{1};
215 std::string m_cellAddress{
"A1"};
222 {
return lhs.
row() == rhs.row() and lhs.column() == rhs.column(); }
234 {
return lhs.row() < rhs.row() or (lhs.row() <= rhs.row() and lhs.column() < rhs.column()); }
Definition XLCellReference.hpp:34
~XLCellReference()
Destructor. Default implementation used.
XLCellReference & operator=(XLCellReference &&other) noexcept
XLCellReference(XLCellReference &&other) noexcept
XLCellReference(const XLCellReference &other)
Copy constructor.
XLCellReference & operator=(const XLCellReference &other)
Assignment operator.
Definition IZipArchive.hpp:18
bool operator==(const XLCell &lhs, const XLCell &rhs)
Definition XLCell.hpp:304
bool operator!=(const XLCell &lhs, const XLCell &rhs)
Definition XLCell.hpp:311
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:244
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:233
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:249
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:239
Definition XLCellIterator.hpp:121
Definition XLCellReference.hpp:25
uint16_t column
Definition XLCellReference.hpp:27
uint32_t row
Definition XLCellReference.hpp:26