0.6.0
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
YAML::convert< namespace_or_regex > Struct Reference

Detailed Description

Definition at line 584 of file yaml_decoders.cc.

Static Public Member Functions

static bool decode (const Node &node, namespace_or_regex &rhs)
 

Member Function Documentation

◆ decode()

static bool YAML::convert< namespace_or_regex >::decode ( const Node &  node,
namespace_or_regex &  rhs 
)
inlinestatic

Definition at line 585 of file yaml_decoders.cc.

586 {
587 using namespace std::string_literals;
588 if (node.IsMap()) {
589 auto pattern = node["r"].as<std::string>();
590 auto rx = std::regex(pattern);
591 rhs = namespace_or_regex{std::move(rx), std::move(pattern)};
592 }
593 else {
594 rhs = namespace_or_regex{node.as<std::string>()};
595 }
596
597 return true;
598 }

The documentation for this struct was generated from the following file: