Definition at line 493 of file yaml_decoders.cc.
◆ decode()
Definition at line 494 of file yaml_decoders.cc.
495 {
496 using namespace std::string_literals;
497 if (node.IsMap() &&
has_key(node,
"match")) {
498 const auto &match = node["match"];
499 rhs.radius = match["radius"].as<unsigned>();
501 if (
has_key(match,
"direction"))
502 rhs.direction = match["direction"].as<context_direction_t>();
503 if (
has_key(match,
"relationships"))
504 rhs.relationships =
505 match["relationships"].as<std::vector<relationship_t>>();
506 }
507 else {
508 rhs.radius = 1;
510 }
511
512 return true;
513 }
The documentation for this struct was generated from the following file: