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

Detailed Description

Definition at line 536 of file yaml_decoders.cc.

Static Public Member Functions

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

Member Function Documentation

◆ decode()

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

Definition at line 537 of file yaml_decoders.cc.

538 {
539 if (node["anyof"]) {
540 rhs.anyof = std::make_unique<filter>(node["anyof"].as<filter>());
541 }
542
543 if (node["allof"]) {
544 rhs.allof = std::make_unique<filter>(node["allof"].as<filter>());
545 }
546
547 if (node["namespaces"]) {
548 auto namespace_list =
549 node["namespaces"].as<decltype(rhs.namespaces)>();
550 for (const auto &ns : namespace_list)
551 rhs.namespaces.push_back({ns});
552 }
553
554 if (node["modules"]) {
555 auto module_list = node["modules"].as<decltype(rhs.modules)>();
556 for (const auto &ns : module_list)
557 rhs.modules.push_back({ns});
558 }
559
560 if (node["module_access"])
561 rhs.module_access =
562 node["module_access"].as<decltype(rhs.module_access)>();
563
564 if (node["relationships"])
565 rhs.relationships =
566 node["relationships"].as<decltype(rhs.relationships)>();
567
568 if (node["elements"])
569 rhs.elements = node["elements"].as<decltype(rhs.elements)>();
570
571 if (node["element_types"])
572 rhs.element_types =
573 node["element_types"].as<decltype(rhs.element_types)>();
574
575 if (node["method_types"])
576 rhs.method_types =
577 node["method_types"].as<decltype(rhs.method_types)>();
578
579 if (node["access"])
580 rhs.access = node["access"].as<decltype(rhs.access)>();
581
582 if (node["subclasses"])
583 rhs.subclasses = node["subclasses"].as<decltype(rhs.subclasses)>();
584
585 if (node["parents"])
586 rhs.parents = node["parents"].as<decltype(rhs.parents)>();
587
588 if (node["specializations"])
589 rhs.specializations =
590 node["specializations"].as<decltype(rhs.specializations)>();
591
592 if (node["dependants"])
593 rhs.dependants = node["dependants"].as<decltype(rhs.dependants)>();
594
595 if (node["dependencies"])
596 rhs.dependencies =
597 node["dependencies"].as<decltype(rhs.dependencies)>();
598
599 if (node["context"])
600 rhs.context = node["context"].as<decltype(rhs.context)>();
601
602 if (node["paths"])
603 rhs.paths = node["paths"].as<decltype(rhs.paths)>();
604
605 if (node["callee_types"])
606 rhs.callee_types =
607 node["callee_types"].as<decltype(rhs.callee_types)>();
608
609 return true;
610 }

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