19 GENERATED_USTRUCT_BODY()
22#pragma region ArrayType
26 using ArrayType = swl::variant<
27 ArrayPropertyView<int8_t>,
28 ArrayPropertyView<uint8_t>,
29 ArrayPropertyView<int16_t>,
30 ArrayPropertyView<uint16_t>,
31 ArrayPropertyView<int32_t>,
32 ArrayPropertyView<uint32_t>,
33 ArrayPropertyView<int64_t>,
34 ArrayPropertyView<uint64_t>,
35 ArrayPropertyView<float>,
36 ArrayPropertyView<double>,
37 ArrayPropertyView<bool>,
38 ArrayPropertyView<std::string_view>,
39 ArrayPropertyView<glm::vec<2, int8_t>>,
40 ArrayPropertyView<glm::vec<2, uint8_t>>,
41 ArrayPropertyView<glm::vec<2, int16_t>>,
42 ArrayPropertyView<glm::vec<2, uint16_t>>,
43 ArrayPropertyView<glm::vec<2, int32_t>>,
44 ArrayPropertyView<glm::vec<2, uint32_t>>,
45 ArrayPropertyView<glm::vec<2, int64_t>>,
46 ArrayPropertyView<glm::vec<2, uint64_t>>,
47 ArrayPropertyView<glm::vec<2, float>>,
48 ArrayPropertyView<glm::vec<2, double>>,
49 ArrayPropertyView<glm::vec<3, int8_t>>,
50 ArrayPropertyView<glm::vec<3, uint8_t>>,
51 ArrayPropertyView<glm::vec<3, int16_t>>,
52 ArrayPropertyView<glm::vec<3, uint16_t>>,
53 ArrayPropertyView<glm::vec<3, int32_t>>,
54 ArrayPropertyView<glm::vec<3, uint32_t>>,
55 ArrayPropertyView<glm::vec<3, int64_t>>,
56 ArrayPropertyView<glm::vec<3, uint64_t>>,
57 ArrayPropertyView<glm::vec<3, float>>,
58 ArrayPropertyView<glm::vec<3, double>>,
59 ArrayPropertyView<glm::vec<4, int8_t>>,
60 ArrayPropertyView<glm::vec<4, uint8_t>>,
61 ArrayPropertyView<glm::vec<4, int16_t>>,
62 ArrayPropertyView<glm::vec<4, uint16_t>>,
63 ArrayPropertyView<glm::vec<4, int32_t>>,
64 ArrayPropertyView<glm::vec<4, uint32_t>>,
65 ArrayPropertyView<glm::vec<4, int64_t>>,
66 ArrayPropertyView<glm::vec<4, uint64_t>>,
67 ArrayPropertyView<glm::vec<4, float>>,
68 ArrayPropertyView<glm::vec<4, double>>,
69 ArrayPropertyView<glm::mat<2, 2, int8_t>>,
70 ArrayPropertyView<glm::mat<2, 2, uint8_t>>,
71 ArrayPropertyView<glm::mat<2, 2, int16_t>>,
72 ArrayPropertyView<glm::mat<2, 2, uint16_t>>,
73 ArrayPropertyView<glm::mat<2, 2, int32_t>>,
74 ArrayPropertyView<glm::mat<2, 2, uint32_t>>,
75 ArrayPropertyView<glm::mat<2, 2, int64_t>>,
76 ArrayPropertyView<glm::mat<2, 2, uint64_t>>,
77 ArrayPropertyView<glm::mat<2, 2, float>>,
78 ArrayPropertyView<glm::mat<2, 2, double>>,
79 ArrayPropertyView<glm::mat<3, 3, int8_t>>,
80 ArrayPropertyView<glm::mat<3, 3, uint8_t>>,
81 ArrayPropertyView<glm::mat<3, 3, int16_t>>,
82 ArrayPropertyView<glm::mat<3, 3, uint16_t>>,
83 ArrayPropertyView<glm::mat<3, 3, int32_t>>,
84 ArrayPropertyView<glm::mat<3, 3, uint32_t>>,
85 ArrayPropertyView<glm::mat<3, 3, int64_t>>,
86 ArrayPropertyView<glm::mat<3, 3, uint64_t>>,
87 ArrayPropertyView<glm::mat<3, 3, float>>,
88 ArrayPropertyView<glm::mat<3, 3, double>>,
89 ArrayPropertyView<glm::mat<4, 4, int8_t>>,
90 ArrayPropertyView<glm::mat<4, 4, uint8_t>>,
91 ArrayPropertyView<glm::mat<4, 4, int16_t>>,
92 ArrayPropertyView<glm::mat<4, 4, uint16_t>>,
93 ArrayPropertyView<glm::mat<4, 4, int32_t>>,
94 ArrayPropertyView<glm::mat<4, 4, uint32_t>>,
95 ArrayPropertyView<glm::mat<4, 4, int64_t>>,
96 ArrayPropertyView<glm::mat<4, 4, uint64_t>>,
97 ArrayPropertyView<glm::mat<4, 4, float>>,
98 ArrayPropertyView<glm::mat<4, 4, double>>>;
112 template <
typename T>
115 TSharedPtr<FCesiumMetadataEnum> pEnumDefinition =
nullptr)
117 _elementType(TypeToMetadataValueType<T>(pEnumDefinition)),
119 _pEnumDefinition(pEnumDefinition) {
120 this->_value = std::move(value).toViewAndExternalBuffer(this->_storage);
123 template <
typename T>
126 TSharedPtr<FCesiumMetadataEnum> pEnumDefinition =
nullptr)
131 template <
typename T>
134 TSharedPtr<FCesiumMetadataEnum> pEnumDefinition =
nullptr)
136 _elementType(TypeToMetadataValueType<T>(pEnumDefinition)),
137 _pEnumDefinition(pEnumDefinition) {}
145 template <
typename T,
typename... VariantType>
147 holdsArrayAlternative(
const swl::variant<VariantType...>& variant) {
148 return swl::holds_alternative<CesiumGltf::PropertyArrayView<T>>(variant);
153 std::vector<std::byte> _storage;
154 TSharedPtr<FCesiumMetadataEnum> _pEnumDefinition;