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