@@ -214,7 +214,7 @@ auto PassField(Priority<1>, TypeList<>, ServerContext& server_context, const Fn&
214
214
}
215
215
216
216
// Destination parameter type that can be passed to ReadField function as an
217
- // alternative to ReadDestValue . It allows the ReadField implementation to call
217
+ // alternative to ReadDestUpdate . It allows the ReadField implementation to call
218
218
// the provided emplace_fn function with constructor arguments, so it only needs
219
219
// to determine the arguments, and can let the emplace function decide how to
220
220
// actually construct the read destination object. For example, if a std::string
@@ -274,9 +274,9 @@ auto ReadDestTemp()
274
274
// ! construct a new value, it just takes a reference to an existing value and
275
275
// ! assigns a new value to it.
276
276
template <typename Value>
277
- struct ReadDestValue
277
+ struct ReadDestUpdate
278
278
{
279
- ReadDestValue (Value& value) : m_value(value) {}
279
+ ReadDestUpdate (Value& value) : m_value(value) {}
280
280
281
281
// ! Simple case. If ReadField works by calling update() just forward arguments to update_fn.
282
282
template <typename UpdateFn>
@@ -310,7 +310,7 @@ decltype(auto) CustomReadField(TypeList<std::optional<LocalType>>,
310
310
if (!input.has ()) {
311
311
value.reset ();
312
312
} else if (value) {
313
- ReadField (TypeList<LocalType>(), invoke_context, input, ReadDestValue (*value));
313
+ ReadField (TypeList<LocalType>(), invoke_context, input, ReadDestUpdate (*value));
314
314
} else {
315
315
ReadField (TypeList<LocalType>(), invoke_context, input,
316
316
ReadDestEmplace (TypeList<LocalType>(), [&](auto &&... args) -> auto & {
@@ -332,7 +332,7 @@ decltype(auto) CustomReadField(TypeList<std::shared_ptr<LocalType>>,
332
332
if (!input.has ()) {
333
333
value.reset ();
334
334
} else if (value) {
335
- ReadField (TypeList<LocalType>(), invoke_context, input, ReadDestValue (*value));
335
+ ReadField (TypeList<LocalType>(), invoke_context, input, ReadDestUpdate (*value));
336
336
} else {
337
337
ReadField (TypeList<LocalType>(), invoke_context, input,
338
338
ReadDestEmplace (TypeList<LocalType>(), [&](auto &&... args) -> auto & {
@@ -352,7 +352,7 @@ decltype(auto) CustomReadField(TypeList<LocalType*>,
352
352
{
353
353
return read_dest.update ([&](auto & value) {
354
354
if (value) {
355
- ReadField (TypeList<LocalType>(), invoke_context, std::forward<Input>(input), ReadDestValue (*value));
355
+ ReadField (TypeList<LocalType>(), invoke_context, std::forward<Input>(input), ReadDestUpdate (*value));
356
356
}
357
357
});
358
358
}
@@ -492,9 +492,9 @@ decltype(auto) CustomReadField(TypeList<std::tuple<KeyLocalType, ValueLocalType>
492
492
using Struct = ProxyStruct<typename Decay<decltype (pair)>::Reads>;
493
493
using Accessors = typename Struct::Accessors;
494
494
ReadField (TypeList<KeyLocalType>(), invoke_context, Make<StructField, std::tuple_element_t <0 , Accessors>>(pair),
495
- ReadDestValue (std::get<0 >(value)));
495
+ ReadDestUpdate (std::get<0 >(value)));
496
496
ReadField (TypeList<ValueLocalType>(), invoke_context, Make<StructField, std::tuple_element_t <1 , Accessors>>(pair),
497
- ReadDestValue (std::get<1 >(value)));
497
+ ReadDestUpdate (std::get<1 >(value)));
498
498
});
499
499
}
500
500
@@ -647,7 +647,7 @@ void ReadOne(TypeList<LocalType> param,
647
647
const auto & struc = input.get ();
648
648
auto && field_value = value.*ProxyType<LocalType>::get (Index ());
649
649
ReadField (TypeList<RemoveCvRef<decltype (field_value)>>(), invoke_context, Make<StructField, Accessor>(struc),
650
- ReadDestValue (field_value));
650
+ ReadDestUpdate (field_value));
651
651
ReadOne<index + 1 >(param, invoke_context, input, value);
652
652
}
653
653
@@ -1118,7 +1118,7 @@ void PassField(Priority<1>, TypeList<LocalType*>, ServerContext& server_context,
1118
1118
Decay<LocalType> param;
1119
1119
1120
1120
MaybeReadField (std::integral_constant<bool , Accessor::in>(), TypeList<LocalType>(), invoke_context, input,
1121
- ReadDestValue (param));
1121
+ ReadDestUpdate (param));
1122
1122
1123
1123
fn.invoke (server_context, std::forward<Args>(args)..., ¶m);
1124
1124
@@ -1355,7 +1355,7 @@ struct ClientParam
1355
1355
-> typename std::enable_if<I == sizeof...(Types)>::type
1356
1356
{
1357
1357
MaybeReadField (std::integral_constant<bool , Accessor::out>(), TypeList<Decay<Params>...>(), invoke_context,
1358
- Make<StructField, Accessor>(results), ReadDestValue (values)...);
1358
+ Make<StructField, Accessor>(results), ReadDestUpdate (values)...);
1359
1359
}
1360
1360
1361
1361
ReadResults (ClientParam* client_param) : m_client_param(client_param) {}
0 commit comments