plugify 1.0.0.0
|
Namespace containing utility functions of ValueType enum. More...
Functions | |
template<typename T > | |
constexpr bool | IsBetween (T x, T a, T b) noexcept |
Checks if a value is between two other values. | |
constexpr bool | IsVoid (ValueType type) noexcept |
Tests whether a given type is ValueType::Void. | |
constexpr bool | IsValid (ValueType type) noexcept |
Tests whether a given type is a valid non-void type. | |
constexpr bool | IsScalar (ValueType type) noexcept |
Tests whether a given type is scalar (has no vector part). | |
constexpr bool | IsFloating (ValueType type) noexcept |
Tests whether a given type is a scalar floating point of any size. | |
constexpr bool | IsBool (ValueType type) noexcept |
Tests whether a given type is a 1-bit boolean. | |
constexpr bool | IsChar8 (ValueType type) noexcept |
Tests whether a given type is an 8-bit character. | |
constexpr bool | IsChar16 (ValueType type) noexcept |
Tests whether a given type is a 16-bit character. | |
constexpr bool | IsInt8 (ValueType type) noexcept |
Tests whether a given type is an 8-bit integer. | |
constexpr bool | IsUInt8 (ValueType type) noexcept |
Tests whether a given type is an 8-bit unsigned integer. | |
constexpr bool | IsInt16 (ValueType type) noexcept |
Tests whether a given type is a 16-bit integer. | |
constexpr bool | IsUInt16 (ValueType type) noexcept |
Tests whether a given type is a 16-bit unsigned integer. | |
constexpr bool | IsInt32 (ValueType type) noexcept |
Tests whether a given type is a 32-bit integer. | |
constexpr bool | IsUInt32 (ValueType type) noexcept |
Tests whether a given type is a 32-bit unsigned integer. | |
constexpr bool | IsInt64 (ValueType type) noexcept |
Tests whether a given type is a 64-bit integer. | |
constexpr bool | IsUInt64 (ValueType type) noexcept |
Tests whether a given type is a 64-bit unsigned integer. | |
constexpr bool | IsPointer (ValueType type) noexcept |
Tests whether a given type is a pointer. | |
constexpr bool | IsFloat (ValueType type) noexcept |
Tests whether a given type is a float. | |
constexpr bool | IsDouble (ValueType type) noexcept |
Tests whether a given type is a double. | |
constexpr bool | IsFunction (ValueType type) noexcept |
Tests whether a given type is a C-function pointer. | |
constexpr bool | IsString (ValueType type) noexcept |
Tests whether a given type is a string. | |
constexpr bool | IsAny (ValueType type) noexcept |
Tests whether a given type is an any. | |
constexpr bool | IsObject (ValueType type) noexcept |
Tests whether a given type is an object of any size. | |
constexpr bool | IsArray (ValueType type) noexcept |
Tests whether a given type is an array of any size. | |
constexpr bool | IsStruct (ValueType type) noexcept |
Tests whether a given type is a POD (plain old data) structure of any size. | |
constexpr bool | IsHiddenParam (ValueType type) noexcept |
Checks if a given ValueType is considered a hidden object parameter. | |
constexpr std::string_view | ToString (ValueType value) noexcept |
Convert a ValueType enum value to its string representation. | |
constexpr ValueType | FromString (std::string_view value) noexcept |
Convert a string representation to a ValueType enum value. | |
Namespace containing utility functions of ValueType enum.
|
constexprnoexcept |
Convert a string representation to a ValueType enum value.
value | The string representation of ValueType. |
Definition at line 440 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is an any.
type | The type to test. |
Definition at line 341 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is an array of any size.
type | The type to test. |
Definition at line 357 of file value_type.hpp.
|
constexprnoexcept |
Checks if a value is between two other values.
T | The type of the values. |
x | The value to check. |
a | The lower bound. |
b | The upper bound. |
Definition at line 171 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a 1-bit boolean.
type | The type to test. |
Definition at line 213 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a 16-bit character.
type | The type to test. |
Definition at line 229 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is an 8-bit character.
type | The type to test. |
Definition at line 221 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a double.
type | The type to test. |
Definition at line 317 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a float.
type | The type to test. |
Definition at line 309 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a scalar floating point of any size.
type | The type to test. |
Definition at line 205 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a C-function pointer.
type | The type to test. |
Definition at line 325 of file value_type.hpp.
|
constexprnoexcept |
Checks if a given ValueType is considered a hidden object parameter.
type | The ValueType to check. |
This function determines if the provided ValueType is typically treated as a hidden object parameter. Hidden object parameters are those where the return argument is allocated by the caller function and passed as the first argument. This is often true for objects and large structs.
Definition at line 378 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a 16-bit integer.
type | The type to test. |
Definition at line 253 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a 32-bit integer.
type | The type to test. |
Definition at line 269 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a 64-bit integer.
type | The type to test. |
Definition at line 285 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is an 8-bit integer.
type | The type to test. |
Definition at line 237 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is an object of any size.
type | The type to test. |
Definition at line 349 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a pointer.
type | The type to test. |
Definition at line 301 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is scalar (has no vector part).
type | The type to test. |
Definition at line 197 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a string.
type | The type to test. |
Definition at line 333 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a POD (plain old data) structure of any size.
type | The type to test. |
Definition at line 365 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a 16-bit unsigned integer.
type | The type to test. |
Definition at line 261 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a 32-bit unsigned integer.
type | The type to test. |
Definition at line 277 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a 64-bit unsigned integer.
type | The type to test. |
Definition at line 293 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is an 8-bit unsigned integer.
type | The type to test. |
Definition at line 245 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is a valid non-void type.
type | The type to test. |
Definition at line 189 of file value_type.hpp.
|
constexprnoexcept |
Tests whether a given type is ValueType::Void.
type | The type to test. |
Definition at line 181 of file value_type.hpp.
|
constexprnoexcept |
Convert a ValueType enum value to its string representation.
value | The ValueType value to convert. |
Definition at line 387 of file value_type.hpp.