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

Detailed Description

Definition at line 385 of file yaml_decoders.cc.

Static Public Member Functions

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

Member Function Documentation

◆ decode()

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

Definition at line 386 of file yaml_decoders.cc.

387 {
388 const auto &val = node.as<std::string>();
389 if (val == to_string(callee_type::constructor))
390 rhs = callee_type::constructor;
391 else if (val == to_string(callee_type::assignment))
392 rhs = callee_type::assignment;
393 else if (val == to_string(callee_type::operator_))
394 rhs = callee_type::operator_;
395 else if (val == to_string(callee_type::defaulted))
396 rhs = callee_type::defaulted;
397 else if (val == to_string(callee_type::static_))
398 rhs = callee_type::static_;
399 else if (val == to_string(callee_type::function))
400 rhs = callee_type::function;
401 else if (val == to_string(callee_type::function_template))
402 rhs = callee_type::function_template;
403 else if (val == to_string(callee_type::method))
404 rhs = callee_type::method;
405 else if (val == to_string(callee_type::lambda))
406 rhs = callee_type::lambda;
407 else if (val == to_string(callee_type::cuda_kernel))
408 rhs = callee_type::cuda_kernel;
409 else if (val == to_string(callee_type::cuda_device))
410 rhs = callee_type::cuda_device;
411 else
412 return false;
413
414 return true;
415 }

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