plugify 1.2.8
|
Namespace containing utility functions of ValueType enum. More...
#include <value_type.hpp>
Static Public Member Functions | |
template<typename T > | |
static constexpr bool | IsBetween (T x, T a, T b) noexcept |
Checks if a value is between two other values. | |
static constexpr bool | IsVoid (ValueType type) noexcept |
Tests whether a given type is ValueType::Void. | |
static constexpr bool | IsValid (ValueType type) noexcept |
Tests whether a given type is a valid non-void type. | |
static constexpr bool | IsScalar (ValueType type) noexcept |
Tests whether a given type is scalar (has no vector part). | |
static constexpr bool | IsFloating (ValueType type) noexcept |
Tests whether a given type is a scalar floating point of any size. | |
static constexpr bool | IsBool (ValueType type) noexcept |
Tests whether a given type is a 1-bit boolean. | |
static constexpr bool | IsChar8 (ValueType type) noexcept |
Tests whether a given type is an 8-bit character. | |
static constexpr bool | IsChar16 (ValueType type) noexcept |
Tests whether a given type is a 16-bit character. | |
static constexpr bool | IsInt8 (ValueType type) noexcept |
Tests whether a given type is an 8-bit integer. | |
static constexpr bool | IsUInt8 (ValueType type) noexcept |
Tests whether a given type is an 8-bit unsigned integer. | |
static constexpr bool | IsInt16 (ValueType type) noexcept |
Tests whether a given type is a 16-bit integer. | |
static constexpr bool | IsUInt16 (ValueType type) noexcept |
Tests whether a given type is a 16-bit unsigned integer. | |
static constexpr bool | IsInt32 (ValueType type) noexcept |
Tests whether a given type is a 32-bit integer. | |
static constexpr bool | IsUInt32 (ValueType type) noexcept |
Tests whether a given type is a 32-bit unsigned integer. | |
static constexpr bool | IsInt64 (ValueType type) noexcept |
Tests whether a given type is a 64-bit integer. | |
static constexpr bool | IsUInt64 (ValueType type) noexcept |
Tests whether a given type is a 64-bit unsigned integer. | |
static constexpr bool | IsPointer (ValueType type) noexcept |
Tests whether a given type is a pointer. | |
static constexpr bool | IsFloat (ValueType type) noexcept |
Tests whether a given type is a float. | |
static constexpr bool | IsDouble (ValueType type) noexcept |
Tests whether a given type is a double. | |
static constexpr bool | IsFunction (ValueType type) noexcept |
Tests whether a given type is a C-function pointer. | |
static constexpr bool | IsString (ValueType type) noexcept |
Tests whether a given type is a string. | |
static constexpr bool | IsAny (ValueType type) noexcept |
Tests whether a given type is an any. | |
static constexpr bool | IsObject (ValueType type) noexcept |
Tests whether a given type is an object of any size. | |
static constexpr bool | IsArray (ValueType type) noexcept |
Tests whether a given type is an array of any size. | |
static constexpr bool | IsStruct (ValueType type) noexcept |
Tests whether a given type is a POD (plain old data) structure of any size. | |
static constexpr bool | IsHiddenParam (ValueType type) noexcept |
Checks if a given ValueType is considered a hidden object parameter. | |
static constexpr size_t | SizeOf (ValueType type) noexcept |
Returns the size in bytes of the given ValueType. | |
Namespace containing utility functions of ValueType enum.
Definition at line 162 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is an any.
type | The type to test. |
Definition at line 384 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is an array of any size.
type | The type to test. |
Definition at line 404 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
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 174 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a 1-bit boolean.
type | The type to test. |
Definition at line 224 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a 16-bit character.
type | The type to test. |
Definition at line 244 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is an 8-bit character.
type | The type to test. |
Definition at line 234 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a double.
type | The type to test. |
Definition at line 354 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a float.
type | The type to test. |
Definition at line 344 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a scalar floating point of any size.
type | The type to test. |
Definition at line 214 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a C-function pointer.
type | The type to test. |
Definition at line 364 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
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 429 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a 16-bit integer.
type | The type to test. |
Definition at line 274 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a 32-bit integer.
type | The type to test. |
Definition at line 294 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a 64-bit integer.
type | The type to test. |
Definition at line 314 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is an 8-bit integer.
type | The type to test. |
Definition at line 254 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is an object of any size.
type | The type to test. |
Definition at line 394 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a pointer.
type | The type to test. |
Definition at line 334 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is scalar (has no vector part).
type | The type to test. |
Definition at line 204 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a string.
type | The type to test. |
Definition at line 374 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a POD (plain old data) structure of any size.
type | The type to test. |
Definition at line 414 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a 16-bit unsigned integer.
type | The type to test. |
Definition at line 284 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a 32-bit unsigned integer.
type | The type to test. |
Definition at line 304 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a 64-bit unsigned integer.
type | The type to test. |
Definition at line 324 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is an 8-bit unsigned integer.
type | The type to test. |
Definition at line 264 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is a valid non-void type.
type | The type to test. |
Definition at line 194 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Tests whether a given type is ValueType::Void.
type | The type to test. |
Definition at line 184 of file value_type.hpp.
|
inlinestaticconstexprnoexcept |
Returns the size in bytes of the given ValueType.
Note: For arrays, this returns the size of the container (std::vector), not the size of the elements inside.
type | The ValueType to check. |
Definition at line 442 of file value_type.hpp.