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< method_type > Struct Reference

Detailed Description

Definition at line 300 of file yaml_decoders.cc.

Static Public Member Functions

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

Member Function Documentation

◆ decode()

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

Definition at line 301 of file yaml_decoders.cc.

302 {
303 const auto &val = node.as<std::string>();
304 if (val == to_string(method_type::constructor))
305 rhs = method_type::constructor;
306 else if (val == to_string(method_type::destructor))
307 rhs = method_type::destructor;
308 else if (val == to_string(method_type::assignment))
309 rhs = method_type::assignment;
310 else if (val == to_string(method_type::operator_))
311 rhs = method_type::operator_;
312 else if (val == to_string(method_type::defaulted))
313 rhs = method_type::defaulted;
314 else if (val == to_string(method_type::deleted))
315 rhs = method_type::deleted;
316 else if (val == to_string(method_type::static_))
317 rhs = method_type::static_;
318 else
319 return false;
320
321 return true;
322 }

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