0.6.3
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 663 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 664 of file yaml_decoders.cc.

665 {
666 if (node["anyof"]) {
667 rhs.anyof = std::make_unique<filter>(node["anyof"].as<filter>());
668 }
669
670 if (node["allof"]) {
671 rhs.allof = std::make_unique<filter>(node["allof"].as<filter>());
672 }
673
674 if (node["namespaces"]) {
675 auto namespace_list =
676 node["namespaces"].as<decltype(rhs.namespaces)>();
677 for (const auto &ns : namespace_list)
678 rhs.namespaces.push_back({ns});
679 }
680
681 if (node["modules"]) {
682 auto module_list = node["modules"].as<decltype(rhs.modules)>();
683 for (const auto &ns : module_list)
684 rhs.modules.push_back({ns});
685 }
686
687 if (node["module_access"])
688 rhs.module_access =
689 node["module_access"].as<decltype(rhs.module_access)>();
690
691 if (node["relationships"])
692 rhs.relationships =
693 node["relationships"].as<decltype(rhs.relationships)>();
694
695 if (node["elements"])
696 rhs.elements = node["elements"].as<decltype(rhs.elements)>();
697
698 if (node["element_types"])
699 rhs.element_types =
700 node["element_types"].as<decltype(rhs.element_types)>();
701
702 if (node["method_types"])
703 rhs.method_types =
704 node["method_types"].as<decltype(rhs.method_types)>();
705
706 if (node["access"])
707 rhs.access = node["access"].as<decltype(rhs.access)>();
708
709 if (node["subclasses"])
710 rhs.subclasses = node["subclasses"].as<decltype(rhs.subclasses)>();
711
712 if (node["parents"])
713 rhs.parents = node["parents"].as<decltype(rhs.parents)>();
714
715 if (node["specializations"])
716 rhs.specializations =
717 node["specializations"].as<decltype(rhs.specializations)>();
718
719 if (node["dependants"])
720 rhs.dependants = node["dependants"].as<decltype(rhs.dependants)>();
721
722 if (node["dependencies"])
723 rhs.dependencies =
724 node["dependencies"].as<decltype(rhs.dependencies)>();
725
726 if (node["context"])
727 rhs.context = node["context"].as<decltype(rhs.context)>();
728
729 if (node["paths"])
730 rhs.paths = node["paths"].as<decltype(rhs.paths)>();
731
732 if (node["callee_types"])
733 rhs.callee_types =
734 node["callee_types"].as<decltype(rhs.callee_types)>();
735
736 return true;
737 }

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