MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / type_name

Function type_name

extern/json/json.hpp:23372–23397  ·  view source on GitHub ↗

@brief return the type as string @sa https://json.nlohmann.me/api/basic_json/type_name/

Source from the content-addressed store, hash-verified

23370 /// @brief return the type as string
23371 /// @sa https://json.nlohmann.me/api/basic_json/type_name/
23372 JSON_HEDLEY_RETURNS_NON_NULL
23373 const char* type_name() const noexcept
23374 {
23375 switch (m_type)
23376 {
23377 case value_t::null:
23378 return "null";
23379 case value_t::object:
23380 return "object";
23381 case value_t::array:
23382 return "array";
23383 case value_t::string:
23384 return "string";
23385 case value_t::boolean:
23386 return "boolean";
23387 case value_t::binary:
23388 return "binary";
23389 case value_t::discarded:
23390 return "discarded";
23391 case value_t::number_integer:
23392 case value_t::number_unsigned:
23393 case value_t::number_float:
23394 default:
23395 return "number";
23396 }
23397 }
23398
23399
23400 JSON_PRIVATE_UNLESS_TESTED:

Callers 12

json.hppFile · 0.85
atFunction · 0.85
operator[]Function · 0.85
valueFunction · 0.85
eraseFunction · 0.85
erase_internalFunction · 0.85
push_backFunction · 0.85
emplace_backFunction · 0.85
emplaceFunction · 0.85
insertFunction · 0.85
updateFunction · 0.85
swapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected