@@ -123,7 +123,7 @@ class INET_API SharingRegionTagSet : public cObject
123
123
Ptr<SharedVector<RegionTag<TagBase>>> regionTags;
124
124
125
125
protected:
126
- void setTag (int index, const Ptr<const TagBase>& tag);
126
+ inline void setTag (int index, const Ptr<const TagBase>& tag);
127
127
void addTag (b offset, b length, const Ptr<const TagBase>& tag);
128
128
std::vector<SharingRegionTagSet::RegionTag<TagBase>> addTagsWhereAbsent (const std::type_info& typeInfo, b offset, b length, const Ptr<const TagBase>& tag);
129
129
const Ptr<TagBase> removeTag (int index);
@@ -139,7 +139,7 @@ class INET_API SharingRegionTagSet : public cObject
139
139
140
140
void ensureTagsVectorAllocated ();
141
141
void prepareTagsVectorForUpdate ();
142
- void sortTagsVector ();
142
+ inline void sortTagsVector ();
143
143
144
144
public:
145
145
/* * @name Constructors and operators */
@@ -148,8 +148,8 @@ class INET_API SharingRegionTagSet : public cObject
148
148
SharingRegionTagSet (const SharingRegionTagSet& other) : regionTags(other.regionTags) {}
149
149
SharingRegionTagSet (SharingRegionTagSet&& other) : regionTags(other.regionTags) { other.regionTags = nullptr ; }
150
150
151
- SharingRegionTagSet& operator =(const SharingRegionTagSet& other);
152
- SharingRegionTagSet& operator =(SharingRegionTagSet&& other);
151
+ inline SharingRegionTagSet& operator =(const SharingRegionTagSet& other);
152
+ inline SharingRegionTagSet& operator =(SharingRegionTagSet&& other);
153
153
154
154
virtual void parsimPack (cCommBuffer *buffer) const override ;
155
155
virtual void parsimUnpack (cCommBuffer *buffer) override ;
@@ -160,27 +160,27 @@ class INET_API SharingRegionTagSet : public cObject
160
160
/* *
161
161
* Returns the number of tags.
162
162
*/
163
- int getNumTags () const ;
163
+ inline int getNumTags () const ;
164
164
165
165
/* *
166
166
* Returns the shared tag at the given index.
167
167
*/
168
- const Ptr<const TagBase>& getTag (int index) const ;
168
+ inline const Ptr<const TagBase>& getTag (int index) const ;
169
169
170
170
/* *
171
171
* Returns the exclusively owned tag at the given index for update.
172
172
*/
173
- const Ptr<TagBase> getTagForUpdate (int index);
173
+ inline const Ptr<TagBase> getTagForUpdate (int index);
174
174
175
175
/* *
176
176
* Returns the shared region tag at the given index.
177
177
*/
178
- const RegionTag<TagBase>& getRegionTag (int index) const ;
178
+ inline const RegionTag<TagBase>& getRegionTag (int index) const ;
179
179
180
180
/* *
181
181
* Returns the exclusively owned region tag at the given index.
182
182
*/
183
- const RegionTag<TagBase> getRegionTagForUpdate (int index);
183
+ inline const RegionTag<TagBase> getRegionTagForUpdate (int index);
184
184
185
185
/* *
186
186
* Clears the set of tags in the given region.
0 commit comments