MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / castToInt

Method castToInt

include/thundersvm/util/log.h:652–654  ·  view source on GitHub ↗

@brief Casts configuration type to int, useful for iterating through enum.

Source from the content-addressed store, hash-verified

650 static const base::type::EnumType kMaxValid = static_cast<base::type::EnumType>(ConfigurationType::MaxLogFileSize);
651 /// @brief Casts configuration type to int, useful for iterating through enum.
652 static base::type::EnumType castToInt(ConfigurationType configurationType) {
653 return static_cast<base::type::EnumType>(configurationType);
654 }
655 /// @brief Casts int(ushort) to configurationt type, useful for iterating through enum.
656 static ConfigurationType castFromInt(base::type::EnumType c) {
657 return static_cast<ConfigurationType>(c);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected