#pragma once #include "chunk.h" #include #include #include #include class Segment: public std::vector> { public: size_t getAddressOfLabel(const std::string& label); size_t getAddressOfIndex(size_t index); std::vector getCode(); void insertAddresses(); void optimize(); };