@@ -58,25 +58,25 @@ class Component {
58
58
Automatic = 4
59
59
};
60
60
61
- const RT_API_ATTRS Descriptor &name () const { return name_.descriptor (); }
61
+ RT_API_ATTRS const Descriptor &name () const { return name_.descriptor (); }
62
62
RT_API_ATTRS Genre genre () const { return genre_; }
63
63
RT_API_ATTRS TypeCategory category () const {
64
64
return static_cast <TypeCategory>(category_);
65
65
}
66
66
RT_API_ATTRS int kind () const { return kind_; }
67
67
RT_API_ATTRS int rank () const { return rank_; }
68
68
RT_API_ATTRS std::uint64_t offset () const { return offset_; }
69
- const RT_API_ATTRS Value &characterLen () const { return characterLen_; }
70
- const RT_API_ATTRS DerivedType *derivedType () const {
69
+ RT_API_ATTRS const Value &characterLen () const { return characterLen_; }
70
+ RT_API_ATTRS const DerivedType *derivedType () const {
71
71
return derivedType_.descriptor ().OffsetElement <const DerivedType>();
72
72
}
73
- const RT_API_ATTRS Value *lenValue () const {
73
+ RT_API_ATTRS const Value *lenValue () const {
74
74
return lenValue_.descriptor ().OffsetElement <const Value>();
75
75
}
76
- const RT_API_ATTRS Value *bounds () const {
76
+ RT_API_ATTRS const Value *bounds () const {
77
77
return bounds_.descriptor ().OffsetElement <const Value>();
78
78
}
79
- const RT_API_ATTRS char *initialization () const { return initialization_; }
79
+ RT_API_ATTRS const char *initialization () const { return initialization_; }
80
80
81
81
RT_API_ATTRS std::size_t GetElementByteSize (const Descriptor &) const ;
82
82
RT_API_ATTRS std::size_t GetElements (const Descriptor &) const ;
@@ -205,27 +205,27 @@ class DerivedType {
205
205
public:
206
206
~DerivedType (); // never defined
207
207
208
- const RT_API_ATTRS Descriptor &binding () const {
208
+ RT_API_ATTRS const Descriptor &binding () const {
209
209
return binding_.descriptor ();
210
210
}
211
- const RT_API_ATTRS Descriptor &name () const { return name_.descriptor (); }
211
+ RT_API_ATTRS const Descriptor &name () const { return name_.descriptor (); }
212
212
RT_API_ATTRS std::uint64_t sizeInBytes () const { return sizeInBytes_; }
213
- const RT_API_ATTRS Descriptor &uninstatiated () const {
213
+ RT_API_ATTRS const Descriptor &uninstatiated () const {
214
214
return uninstantiated_.descriptor ();
215
215
}
216
- const RT_API_ATTRS Descriptor &kindParameter () const {
216
+ RT_API_ATTRS const Descriptor &kindParameter () const {
217
217
return kindParameter_.descriptor ();
218
218
}
219
- const RT_API_ATTRS Descriptor &lenParameterKind () const {
219
+ RT_API_ATTRS const Descriptor &lenParameterKind () const {
220
220
return lenParameterKind_.descriptor ();
221
221
}
222
- const RT_API_ATTRS Descriptor &component () const {
222
+ RT_API_ATTRS const Descriptor &component () const {
223
223
return component_.descriptor ();
224
224
}
225
- const RT_API_ATTRS Descriptor &procPtr () const {
225
+ RT_API_ATTRS const Descriptor &procPtr () const {
226
226
return procPtr_.descriptor ();
227
227
}
228
- const RT_API_ATTRS Descriptor &special () const {
228
+ RT_API_ATTRS const Descriptor &special () const {
229
229
return special_.descriptor ();
230
230
}
231
231
RT_API_ATTRS bool hasParent () const { return hasParent_; }
@@ -241,14 +241,14 @@ class DerivedType {
241
241
return lenParameterKind ().Elements ();
242
242
}
243
243
244
- const RT_API_ATTRS DerivedType *GetParentType () const ;
244
+ RT_API_ATTRS const DerivedType *GetParentType () const ;
245
245
246
246
// Finds a data component by name in this derived type or its ancestors.
247
- const RT_API_ATTRS Component *FindDataComponent (
247
+ RT_API_ATTRS const Component *FindDataComponent (
248
248
const char *name, std::size_t nameLen) const ;
249
249
250
250
// O(1) look-up of special procedure bindings
251
- const RT_API_ATTRS SpecialBinding *FindSpecialBinding (
251
+ RT_API_ATTRS const SpecialBinding *FindSpecialBinding (
252
252
SpecialBinding::Which which) const {
253
253
auto bitIndex{static_cast <std::uint32_t >(which)};
254
254
auto bit{std::uint32_t {1 } << bitIndex};
0 commit comments