diff --git a/src/inet/common/packet/tag/SharingRegionTagSet.h b/src/inet/common/packet/tag/SharingRegionTagSet.h index 8b37c2e41d5..9da3d48bd4f 100644 --- a/src/inet/common/packet/tag/SharingRegionTagSet.h +++ b/src/inet/common/packet/tag/SharingRegionTagSet.h @@ -123,7 +123,7 @@ class INET_API SharingRegionTagSet : public cObject Ptr>> regionTags; protected: - void setTag(int index, const Ptr& tag); + inline void setTag(int index, const Ptr& tag); void addTag(b offset, b length, const Ptr& tag); std::vector> addTagsWhereAbsent(const std::type_info& typeInfo, b offset, b length, const Ptr& tag); const Ptr removeTag(int index); @@ -139,7 +139,7 @@ class INET_API SharingRegionTagSet : public cObject void ensureTagsVectorAllocated(); void prepareTagsVectorForUpdate(); - void sortTagsVector(); + inline void sortTagsVector(); public: /** @name Constructors and operators */ @@ -148,8 +148,8 @@ class INET_API SharingRegionTagSet : public cObject SharingRegionTagSet(const SharingRegionTagSet& other) : regionTags(other.regionTags) {} SharingRegionTagSet(SharingRegionTagSet&& other) : regionTags(other.regionTags) { other.regionTags = nullptr; } - SharingRegionTagSet& operator=(const SharingRegionTagSet& other); - SharingRegionTagSet& operator=(SharingRegionTagSet&& other); + inline SharingRegionTagSet& operator=(const SharingRegionTagSet& other); + inline SharingRegionTagSet& operator=(SharingRegionTagSet&& other); virtual void parsimPack(cCommBuffer *buffer) const override; virtual void parsimUnpack(cCommBuffer *buffer) override; @@ -160,27 +160,27 @@ class INET_API SharingRegionTagSet : public cObject /** * Returns the number of tags. */ - int getNumTags() const; + inline int getNumTags() const; /** * Returns the shared tag at the given index. */ - const Ptr& getTag(int index) const; + inline const Ptr& getTag(int index) const; /** * Returns the exclusively owned tag at the given index for update. */ - const Ptr getTagForUpdate(int index); + inline const Ptr getTagForUpdate(int index); /** * Returns the shared region tag at the given index. */ - const RegionTag& getRegionTag(int index) const; + inline const RegionTag& getRegionTag(int index) const; /** * Returns the exclusively owned region tag at the given index. */ - const RegionTag getRegionTagForUpdate(int index); + inline const RegionTag getRegionTagForUpdate(int index); /** * Clears the set of tags in the given region. diff --git a/src/inet/common/packet/tag/SharingTagSet.h b/src/inet/common/packet/tag/SharingTagSet.h index af4b24169b6..b1f59bfec81 100644 --- a/src/inet/common/packet/tag/SharingTagSet.h +++ b/src/inet/common/packet/tag/SharingTagSet.h @@ -40,7 +40,7 @@ class INET_API SharingTagSet : public cObject Ptr>> tags; protected: - void setTag(int index, const Ptr& tag); + inline void setTag(int index, const Ptr& tag); void addTag(const Ptr& tag); const Ptr removeTag(int index); @@ -57,8 +57,8 @@ class INET_API SharingTagSet : public cObject SharingTagSet(const SharingTagSet& other) : tags(other.tags) {} SharingTagSet(SharingTagSet&& other) : tags(other.tags) { other.tags = nullptr; } - SharingTagSet& operator=(const SharingTagSet& other); - SharingTagSet& operator=(SharingTagSet&& other); + inline SharingTagSet& operator=(const SharingTagSet& other); + inline SharingTagSet& operator=(SharingTagSet&& other); virtual void parsimPack(cCommBuffer *buffer) const override; virtual void parsimUnpack(cCommBuffer *buffer) override;