AALanguage
The best language for those who have nothing to do
Loading...
Searching...
No Matches
Identifier Struct Reference

A class to represent a variable. More...

#include <TableIdentifiers.h>

Collaboration diagram for Identifier:

Public Member Functions

 Identifier (std::string name_, Type type_, void *value_=nullptr)
 A constructor that specifies the public fields of the type.
 
bool operator== (const Identifier &other) const
 Type comparison operator.
 

Public Attributes

std::string name
 Variable name.
 
Type type
 Standart expression type.
 
void * value
 Pointer to a value stored in the executor memory.
 

Detailed Description

A class to represent a variable.

Definition at line 84 of file TableIdentifiers.h.

Constructor & Destructor Documentation

◆ Identifier()

Identifier::Identifier ( std::string name_,
Type type_,
void * value_ = nullptr )
inline

A constructor that specifies the public fields of the type.

Definition at line 94 of file TableIdentifiers.h.

References name, type, and value.

Member Function Documentation

◆ operator==()

bool Identifier::operator== ( const Identifier & other) const
inline

Type comparison operator.

Compares all public attributes.

Parameters
otherAnother identifier to compare.

Definition at line 106 of file TableIdentifiers.h.

References type.

Member Data Documentation

◆ name

std::string Identifier::name

◆ type

◆ value

void* Identifier::value

Pointer to a value stored in the executor memory.

Definition at line 90 of file TableIdentifiers.h.

Referenced by Poliz::address_to_value(), Poliz::copy_value(), Identifier(), Analyzer::var_definition(), and Analyzer::var_definitions().


The documentation for this struct was generated from the following file: