X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FFunction.hxx;h=5497800969e57b8f12a2a2c8e24bdaf20688c675;hp=39d3f51b47cc39aab43c453f0cf3edc4b598b55f;hb=0daf9a157f3d41690cf4a0287db1adecc4ad0b71;hpb=bb5959013f2daeff2c0639e868d6406500dc17fb diff --git a/src/core/Function.hxx b/src/core/Function.hxx index 39d3f51..5497800 100644 --- a/src/core/Function.hxx +++ b/src/core/Function.hxx @@ -8,11 +8,6 @@ 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; @@ -20,8 +15,7 @@ public: std::string getName() const { return name; } - void setName(const std::string& new_name) - { name = new_name; } + void setName(const std::string& new_name); InformationManager* getManager() const { return manager; @@ -31,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