1 #ifndef INCLUDE__Function_hxx
2 #define INCLUDE__Function_hxx
5 #include "BasicBlock.hxx"
7 class InformationManager;
8 class QXmlStreamWriter;
12 uint64_t getStartAddress() const {
16 std::string getName() const
18 void setName(const std::string& new_name);
20 InformationManager* getManager() const {
24 void addBasicBlock(BasicBlock* block) {
25 _blocks.insert(std::make_pair(block->getStartAddress(), block));
28 const std::map<uint64_t, BasicBlock*>& blocks() {
32 void serialize(QXmlStreamWriter& stream);
34 Function(uint64_t start_address, InformationManager* manager);
37 uint64_t start_address;
38 InformationManager * manager;
39 std::map<uint64_t, BasicBlock*> _blocks;
41 friend class InformationManager;