Entity
class Entity
Represents an entity in the source code, which can be a constant, object, macro, or function.
DEFINITION
class Entity;
constructor Entity
DEFINITION
| Entity | ( | ObjectFile * owner, | |
| const Token & name, | |||
| const std::shared_ptr< StructuredValue > & definition | ); |
| PARAMETER | DESCRIPTION |
|---|---|
owner |
|
name |
|
definition |
constructor Entity
DEFINITION
| Entity | ( | ObjectFile * owner, | |
| const Token & name, | |||
| Visibility visibility, | |||
| bool default_only | ); |
| PARAMETER | DESCRIPTION |
|---|---|
owner |
|
name |
|
visibility |
|
default_only |
destructor ~Entityvirtual
DEFINITION
| virtual ~Entity | ( | ); |
method as_macro
DEFINITION
| Macro * as_macro | ( | ); |
| RETURNS | DESCRIPTION |
|---|---|
Macro * |
method as_object
DEFINITION
| Object * as_object | ( | ); |
| RETURNS | DESCRIPTION |
|---|---|
Object * |
method check_unresolvedconst
DEFINITION
| bool check_unresolved | ( | Unresolved & unresolved | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
unresolved |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method evaluate
DEFINITION
| void evaluate | ( | ); |
method evaluate
DEFINITION
| EvaluationResult evaluate | ( | EvaluationContext::EvaluationType type | ); |
| PARAMETER | DESCRIPTION |
|---|---|
type |
| RETURNS | DESCRIPTION |
|---|---|
EvaluationResult |
method evaluate_innervirtual
DEFINITION
| virtual void evaluate_inner | ( | EvaluationContext & context | ) | = 0; |
| PARAMETER | DESCRIPTION |
|---|---|
context |
method evaluation_contextvirtual
DEFINITION
| virtual EvaluationContext evaluation_context | ( | EvaluationResult & result | ); |
| PARAMETER | DESCRIPTION |
|---|---|
result |
| RETURNS | DESCRIPTION |
|---|---|
EvaluationContext |
method evaluation_contextvirtual
DEFINITION
| virtual EvaluationContext evaluation_context | ( | EvaluationResult & result, | |
| EvaluationContext::EvaluationType type | ); |
| PARAMETER | DESCRIPTION |
|---|---|
result |
|
type |
| RETURNS | DESCRIPTION |
|---|---|
EvaluationContext |
method is_default_onlyconst
DEFINITION
| bool is_default_only | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method is_macro
DEFINITION
| bool is_macro | ( | ); |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method is_object
DEFINITION
| bool is_object | ( | ); |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method is_publicconst
DEFINITION
| bool is_public | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method process_result
DEFINITION
| void process_result | ( | EvaluationResult & result | ); |
| PARAMETER | DESCRIPTION |
|---|---|
result |
method resolve_labels
DEFINITION
| void resolve_labels | ( | ); |
method serialize_entityconst
DEFINITION
| void serialize_entity | ( | std::ostream & stream | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
stream |
method set_owner
DEFINITION
| void set_owner | ( | ObjectFile * new_owner | ); |
| PARAMETER | DESCRIPTION |
|---|---|
new_owner |
member environment
DEFINITION
std::shared_ptr< Environment > environment;
member location
DEFINITION
Location location;
member name
DEFINITION
Symbol name;
member owner
DEFINITION
ObjectFile * owner;
member referenced_objects
DEFINITION
std::unordered_set< Object * > referenced_objects;
member unresolved_functions
DEFINITION
std::unordered_set< Symbol > unresolved_functions;
member unresolved_macros
DEFINITION
std::unordered_set< Symbol > unresolved_macros;
member unresolved_variables
DEFINITION
std::unordered_set< Symbol > unresolved_variables;
member visibility
DEFINITION
Visibility visibility;