diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-08 20:30:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-08 20:30:40 +0300 |
commit | fd3223578c0a0789627a92cc63235c24e75f87c3 (patch) | |
tree | 48b90671150a8ea4a7d3b9306d3eabca349d556a /src/resources/resource.h | |
parent | 27a2dd4fce2d529cd1d96aa5ddce1e74b4f54a2f (diff) | |
download | manaverse-fd3223578c0a0789627a92cc63235c24e75f87c3.tar.gz manaverse-fd3223578c0a0789627a92cc63235c24e75f87c3.tar.bz2 manaverse-fd3223578c0a0789627a92cc63235c24e75f87c3.tar.xz manaverse-fd3223578c0a0789627a92cc63235c24e75f87c3.zip |
Remove most setters and getters from Resource class.
Diffstat (limited to 'src/resources/resource.h')
-rw-r--r-- | src/resources/resource.h | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/src/resources/resource.h b/src/resources/resource.h index 4b2f57229..a434606a0 100644 --- a/src/resources/resource.h +++ b/src/resources/resource.h @@ -73,61 +73,20 @@ class Resource notfinal : public MemoryCounter */ virtual void decRef(); - /** - * Return the path identifying this resource. - */ - const std::string &getIdPath() const noexcept2 A_WARN_UNUSED - { return mIdPath; } - - void setIdPath(const std::string &path) - { mIdPath = path; } - - /** - * Return refCount for this resource. - */ - unsigned getRefCount() const noexcept2 A_WARN_UNUSED - { return mRefCount; } - - void setSource(const std::string &str) noexcept2 - { mSource = str; } - - std::string getSource() const noexcept2 A_WARN_UNUSED - { return mSource; } - - void setProtected(const bool b) noexcept2 - { mProtected = b; } - - bool isProtected() const noexcept2 - { return mProtected; } - - void setNotCount(const bool b) noexcept2 - { mNotCount = b; } - int calcMemoryLocal() const override; std::string getCounterName() const override { return mIdPath + "-" + mSource; } -#ifdef DEBUG_DUMP_LEAKS - bool getDumped() const noexcept2 A_WARN_UNUSED - { return mDumped; } - - void setDumped(const bool n) noexcept2 - { mDumped = n; } -#endif // DEBUG_DUMP_LEAKS - time_t mTimeStamp; /**< Time at which the resource was orphaned. */ -#ifndef UNITTESTS - protected: -#endif // UNITTESTS std::string mIdPath; /**< Path identifying this resource. */ std::string mSource; - private: unsigned int mRefCount; /**< Reference count. */ bool mProtected; bool mNotCount; + #ifdef DEBUG_DUMP_LEAKS bool mDumped; #endif // DEBUG_DUMP_LEAKS |