X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FFunction.hxx;h=5497800969e57b8f12a2a2c8e24bdaf20688c675;hp=f4fa90e1e429eeaf9928896b454906226ce3e223;hb=0daf9a157f3d41690cf4a0287db1adecc4ad0b71;hpb=9fe5caf6408d1b7d5eb86dacdb211bd22335398a diff --git a/src/core/Function.hxx b/src/core/Function.hxx index f4fa90e..5497800 100644 --- a/src/core/Function.hxx +++ b/src/core/Function.hxx @@ -8,19 +8,14 @@ class InformationManager; class Function { public: - Function(const std::string& name, uint64_t start_address, - InformationManager* manager) - : name(name) - , start_address(start_address) - ,manager(manager) {} uint64_t getStartAddress() const { return start_address; } - std::string getName() const { - return name; - } + std::string getName() const + { return name; } + void setName(const std::string& new_name); InformationManager* getManager() const { return manager; @@ -30,14 +25,18 @@ public: _blocks.insert(std::make_pair(block->getStartAddress(), block)); } - std::map& blocks() { + const std::map& blocks() { return _blocks; } private: + Function(uint64_t start_address, InformationManager* manager); + std::string name; uint64_t start_address; InformationManager * manager; std::map _blocks; + + friend class InformationManager; }; #endif