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

Detailed Description

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

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

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