Definition at line 357 of file yaml_decoders.cc.
|
| static bool | decode (const Node &node, method_type &rhs) |
| |
◆ decode()
| static bool YAML::convert< method_type >::decode |
( |
const Node & |
node, |
|
|
method_type & |
rhs |
|
) |
| |
|
inlinestatic |
Definition at line 358 of file yaml_decoders.cc.
359 {
360 const auto &val = node.as<std::string>();
361 if (val ==
to_string(method_type::constructor))
362 rhs = method_type::constructor;
363 else if (val ==
to_string(method_type::destructor))
364 rhs = method_type::destructor;
365 else if (val ==
to_string(method_type::assignment))
366 rhs = method_type::assignment;
367 else if (val ==
to_string(method_type::operator_))
368 rhs = method_type::operator_;
369 else if (val ==
to_string(method_type::defaulted))
370 rhs = method_type::defaulted;
371 else if (val ==
to_string(method_type::deleted))
372 rhs = method_type::deleted;
373 else if (val ==
to_string(method_type::static_))
374 rhs = method_type::static_;
375 else
376 return false;
377
378 return true;
379 }
The documentation for this struct was generated from the following file: