Address
class Address
Represents an address, consisting of a bank and an address within that bank. The bank defaults to 0.
class Componentprivate
constructor Component
| Component | ( | Symbol name, | |
| Expression expression | ); |
| PARAMETER | DESCRIPTION |
|---|---|
name |
|
expression |
constructor Component
| Component | ( | Symbol name, | |
| uint64_t value | ); |
| PARAMETER | DESCRIPTION |
|---|---|
name |
|
value |
method evaluate
| void evaluate | ( | const EvaluationContext & context | ); |
| PARAMETER | DESCRIPTION |
|---|---|
context |
method evaluate_process
| void evaluate_process | ( | ); |
method has_valueconst
| bool has_value | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method is_equalconst
| std::optional< bool > is_equal | ( | const Component & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< bool > |
method is_less_thanconst
| std::optional< bool > is_less_than | ( | const Component & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< bool > |
method is_not_equalconst
| std::optional< bool > is_not_equal | ( | const Component & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< bool > |
method maximumconst
| std::optional< uint64_t > maximum | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
method minimumconst
| std::optional< uint64_t > minimum | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
method resolve
| void resolve | ( | Scope * scope, | |
| Entity * containing_entity | ); |
| PARAMETER | DESCRIPTION |
|---|---|
scope |
|
containing_entity |
method serializeconst
| void serialize | ( | std::ostream & stream, | |
| bool output_if_zero = true | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
stream |
|
output_if_zero |
method traverse
| void traverse | ( | std::function< void(Expression &)> expression_callback | ); |
| PARAMETER | DESCRIPTION |
|---|---|
expression_callback |
method valueconst
| std::optional< uint64_t > value | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
member component_valueprivate
member nameprivate
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 address.
| Address | ( | Expression address | ); |
| PARAMETER | DESCRIPTION |
|---|---|
address |
The expression representing 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 with the given bank and address.
| Address | ( | Expression bank, | |
| Expression address | ); |
| PARAMETER | DESCRIPTION |
|---|---|
bank |
The expression representing the bank of the address. |
address |
The expression representing the address within the bank. |
constructor Address
Constructs an address by parsing an expression from a tokenizer.
| Address | ( | Tokenizer & tokenizer | ); |
| PARAMETER | DESCRIPTION |
|---|---|
tokenizer |
The tokenizer to parse the expression from. |
method addressconst
Get the address within the bank.
| std::optional< uint64_t > address | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
The address within the bank, if known. |
method address_maximumconst
Get the maximum possible value of the address within the bank.
| std::optional< uint64_t > address_maximum | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
The maximum possible value of the address within the bank, if known. |
method address_minimumconst
Get the minimum possible value of the address within the bank.
| std::optional< uint64_t > address_minimum | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
The minimum possible value of the address within the bank, if known. |
method bankconst
Get the bank of the address.
| std::optional< uint64_t > bank | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
The bank of the address, if known. |
method bank_maximumconst
Get the maximum possible value of the bank.
| std::optional< uint64_t > bank_maximum | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
The maximum possible value of the bank, if known. |
method bank_minimumconst
Get the minimum possible value of the bank.
| std::optional< uint64_t > bank_minimum | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
The minimum possible value of the bank, if known. |
method evaluate
Evaluate the expressions.
| void evaluate | ( | const EvaluationContext & context | ); |
| PARAMETER | DESCRIPTION |
|---|---|
context |
The evaluation context. |
method evaluate_processprivate
Set values from expressions.
| void evaluate_process | ( | ); |
method has_addressconst
Check if the address within the bank is known.
| bool has_address | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
|
method has_bankconst
Check if the bank is known.
| bool has_bank | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
|
method has_valueconst
Check if both the bank and the address within the bank are known.
| bool has_value | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
|
method operator<const
| bool operator< | ( | const Address & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method operator==const
| bool operator== | ( | const Address & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method resolve
Resolve names in the expressions.
| void resolve | ( | Scope * scope, | |
| Entity * containing_entity | ); |
| PARAMETER | DESCRIPTION |
|---|---|
scope |
The scope to resolve names in. |
containing_entity |
The entity containing the address. |
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 |
method traverse
| void traverse | ( | std::function< void(Expression &)> expression_callback | ); |
| PARAMETER | DESCRIPTION |
|---|---|
expression_callback |
member address_componentprivate
The address within the bank.
member address_namestatic private
member bank_componentprivate
The bank of the address.
member bank_namestatic private
class Componentprivate
constructor Component
| Component | ( | Symbol name, | |
| Expression expression | ); |
| PARAMETER | DESCRIPTION |
|---|---|
name |
|
expression |
constructor Component
| Component | ( | Symbol name, | |
| uint64_t value | ); |
| PARAMETER | DESCRIPTION |
|---|---|
name |
|
value |
method evaluate
| void evaluate | ( | const EvaluationContext & context | ); |
| PARAMETER | DESCRIPTION |
|---|---|
context |
method evaluate_process
| void evaluate_process | ( | ); |
method has_valueconst
| bool has_value | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method is_equalconst
| std::optional< bool > is_equal | ( | const Component & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< bool > |
method is_less_thanconst
| std::optional< bool > is_less_than | ( | const Component & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< bool > |
method is_not_equalconst
| std::optional< bool > is_not_equal | ( | const Component & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< bool > |
method maximumconst
| std::optional< uint64_t > maximum | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
method minimumconst
| std::optional< uint64_t > minimum | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
method resolve
| void resolve | ( | Scope * scope, | |
| Entity * containing_entity | ); |
| PARAMETER | DESCRIPTION |
|---|---|
scope |
|
containing_entity |
method serializeconst
| void serialize | ( | std::ostream & stream, | |
| bool output_if_zero = true | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
stream |
|
output_if_zero |
method traverse
| void traverse | ( | std::function< void(Expression &)> expression_callback | ); |
| PARAMETER | DESCRIPTION |
|---|---|
expression_callback |
method valueconst
| std::optional< uint64_t > value | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< uint64_t > |
member component_valueprivate
member nameprivate
class formatter< Address >
method formatconst
| auto format | ( | const Address & address, | |
| std::format_context & ctx | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
address |
|
ctx |
| RETURNS | DESCRIPTION |
|---|---|
auto |