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

Detailed Description

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

330 {
331 const auto &val = node.as<std::string>();
332 if (val == to_string(callee_type::constructor))
333 rhs = callee_type::constructor;
334 else if (val == to_string(callee_type::assignment))
335 rhs = callee_type::assignment;
336 else if (val == to_string(callee_type::operator_))
337 rhs = callee_type::operator_;
338 else if (val == to_string(callee_type::defaulted))
339 rhs = callee_type::defaulted;
340 else if (val == to_string(callee_type::static_))
341 rhs = callee_type::static_;
342 else if (val == to_string(callee_type::function))
343 rhs = callee_type::function;
344 else if (val == to_string(callee_type::function_template))
345 rhs = callee_type::function_template;
346 else if (val == to_string(callee_type::method))
347 rhs = callee_type::method;
348 else if (val == to_string(callee_type::lambda))
349 rhs = callee_type::lambda;
350 else if (val == to_string(callee_type::cuda_kernel))
351 rhs = callee_type::cuda_kernel;
352 else if (val == to_string(callee_type::cuda_device))
353 rhs = callee_type::cuda_device;
354 else
355 return false;
356
357 return true;
358 }

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