Definition at line 561 of file yaml_decoders.cc.
◆ decode()
Definition at line 562 of file yaml_decoders.cc.
563 {
564 using namespace std::string_literals;
565 if (node.IsMap() &&
has_key(node,
"match")) {
566 const auto &match = node["match"];
567 rhs.radius = match["radius"].as<unsigned>();
569 if (
has_key(match,
"direction"))
570 rhs.direction = match["direction"].as<context_direction_t>();
571 if (
has_key(match,
"relationships"))
572 rhs.relationships =
573 match["relationships"].as<std::vector<relationship_t>>();
574 }
575 else {
576 rhs.radius = 1;
578 }
579
580 return true;
581 }
The documentation for this struct was generated from the following file: