Address
class Address
Represents an address, consisting of a bank and an address within that bank. The bank defaults to 0.
constructor Address
Constructs an address with the given address and a default bank of 0.
| Address | ( | uint64_t address | ); |
| PARAMETER | DESCRIPTION |
|---|---|
address |
The address within the bank. |
constructor Address
Constructs an address with the given bank and address.
| Address | ( | uint64_t bank, | |
| uint64_t address | ); |
| PARAMETER | DESCRIPTION |
|---|---|
bank |
The bank of the address. |
address |
The address within the bank. |
constructor Address
Constructs an address by parsing an expression from a tokenizer.
| Address | ( | Tokenizer & tokenizer, | |
| std::shared_ptr< Environment > environment = {} | ); |
| PARAMETER | DESCRIPTION |
|---|---|
tokenizer |
The tokenizer to parse the expression from. |
environment |
The environment to evaluate the expression in. |
method operator!=const
Compares two addresses for inequality.
| bool operator!= | ( | const Address & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
The address to compare with. |
| RETURNS | DESCRIPTION |
|---|---|
bool |
|
method operator<const
Compares two addresses. Addresses are ordered by bank first, then by address within the bank.
| bool operator< | ( | const Address & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
The address to compare with. |
| RETURNS | DESCRIPTION |
|---|---|
bool |
|
method operator==const
Compares two addresses for equality.
| bool operator== | ( | const Address & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
The address to compare with. |
| RETURNS | DESCRIPTION |
|---|---|
bool |
|
method serializeconst
Serializes the address to a stream. The format is address if the bank is 0, and bank:address otherwise.
| void serialize | ( | std::ostream & stream | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
stream |
member address
The address within the bank.
member bank
The bank of the address.