1#ifndef TS_SYMBOLTABLE_H
2#define TS_SYMBOLTABLE_H
5#include "unordered_map"
28 SymbolTable(
int id,
int* entryId,
const std::string& tableName);
156 std::string tableName;
159 std::vector<Entry*> storage;
162 std::unordered_map<std::string, int> lexemeToPos;
165 std::unordered_map<int, int> idToPos;
168 std::unordered_map<std::string,AttributeValue*> attributes;
171 int displacement = 0;
174 int tableEntriesSize = 0;
176 bool deleteEntryByPos(
int pos);
std::vector< Entry * > & _getEntriesStorage()
int _getDisplacement() const
AttributeValue * getAttribute(const std::string &attributeName)
int getTableEntriesSize() const
Entry * createNewEntry(const std::string &lexeme)
void _addTableEntriesSize(int size)
void setNumericAttribute(const std::string &attributeName, long long value)
SymbolTable(int id, int *entryId, const std::string &tableName)
bool deleteEntry(const std::string &lexeme)
Entry * searchEntry(const std::string &lexeme)
void setStringAttribute(const std::string &attributeName, const char *value)
Entry * getEntry(int entryId)
std::string getTableName() const