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

Detailed Description

Definition at line 358 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 359 of file yaml_decoders.cc.

360 {
361 const auto &val = node.as<std::string>();
362 if (val == to_string(method_type::constructor))
363 rhs = method_type::constructor;
364 else if (val == to_string(method_type::destructor))
365 rhs = method_type::destructor;
366 else if (val == to_string(method_type::assignment))
367 rhs = method_type::assignment;
368 else if (val == to_string(method_type::operator_))
369 rhs = method_type::operator_;
370 else if (val == to_string(method_type::defaulted))
371 rhs = method_type::defaulted;
372 else if (val == to_string(method_type::deleted))
373 rhs = method_type::deleted;
374 else if (val == to_string(method_type::static_))
375 rhs = method_type::static_;
376 else
377 return false;
378
379 return true;
380 }

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