rc_address_t

Defined in header: <ixion/address.hpp>

struct rc_address_t

Stores either absolute or relative address, but unlike the address_t counterpart, this struct only stores row and column positions. The “rc” in the name stands for row and column.

Public Functions

rc_address_t()

Construct the absolute address of the top-left cell.

rc_address_t(row_t _row, col_t _column, bool _abs_row = true, bool _abs_column = true)

Construct an address from its components and their absolute flags.

rc_address_t(const rc_address_t &r)

Copy constructor.

rc_address_t(const abs_rc_address_t &r)

Construct an address with both components absolute.

std::strong_ordering operator<=>(const rc_address_t &r) const

Order addresses by their components and flags, in declaration order.

bool operator==(const rc_address_t &r) const

Compare both components and flags of two addresses.

Public Members

row_t row

Row position, or row offset when relative.

col_t column

Column position, or column offset when relative.

bool abs_row

Whether the row component is absolute.

bool abs_column

Whether the column component is absolute.

struct hash

Hash function for use in unordered containers.

Public Functions

size_t operator()(const rc_address_t &addr) const

Compute the hash value of an address.