Add doc repo as submodule
[frida/frida.git] / src / disassembler / Instruction.hxx
1 #ifndef INCLUDE__Instruction_hxx_
2 #define INCLUDE__Instruction_hxx_
3
4 #include <vector>
5 #include <cstdint>
6 #include <string>
7
8 class Comment;
9
10 class Instruction {
11 public:
12 Instruction(uint64_t address, const std::string& text,
13 const std::vector<uint8_t>& bytes,
14 const std::string& reference)
15 : address(address), text(text), bytes(bytes), reference(reference) {}
16 uint64_t getAddress() const {return address;}
17 const std::string& getText() const {return text;}
18 const std::vector<uint8_t>& getBytes() const {return bytes;}
19 const std::string& getReference() const {return reference;}
20 std::vector<Comment*>& comments() {return _comments;}
21 private:
22 uint64_t address;
23 std::string text;
24 std::vector<uint8_t> bytes;
25 std::string reference;
26 std::vector<Comment*> _comments;
27 };
28
29 #endif /* INCLUDE__Instruction_hxx_ */