5#include "testing/testing.h"
85 const int int_value = value.
value;
122 int buffer[10] = {0};
123 CPPType_TestType.default_construct(
static_cast<void *
>(buffer));
126 CPPType_TestType.default_construct_n(
static_cast<void *
>(buffer), 3);
132 CPPType_TestType.default_construct_indices(
static_cast<void *
>(buffer),
151 int buffer[10] = {0};
152 CPPType_TestType.value_initialize(
static_cast<void *
>(buffer));
155 CPPType_TestType.value_initialize_n(
static_cast<void *
>(buffer), 3);
161 CPPType_TestType.value_initialize_indices(
static_cast<void *
>(buffer),
180 int buffer[10] = {0};
181 CPPType_TestType.destruct(
static_cast<void *
>(buffer));
184 CPPType_TestType.destruct_n(
static_cast<void *
>(buffer), 3);
190 CPPType_TestType.destruct_indices(
static_cast<void *
>(buffer),
202 int buffer1[10] = {0};
203 int buffer2[10] = {0};
204 CPPType_TestType.copy_construct(
static_cast<void *
>(buffer1),
static_cast<void *
>(buffer2));
207 CPPType_TestType.copy_construct_n(
static_cast<void *
>(buffer1),
static_cast<void *
>(buffer2), 3);
217 CPPType_TestType.copy_construct_indices(
static_cast<void *
>(buffer1),
218 static_cast<void *
>(buffer2),
236 int buffer1[10] = {0};
237 int buffer2[10] = {0};
238 CPPType_TestType.copy_assign(
static_cast<void *
>(buffer1),
static_cast<void *
>(buffer2));
241 CPPType_TestType.copy_assign_n(
static_cast<void *
>(buffer1),
static_cast<void *
>(buffer2), 3);
251 CPPType_TestType.copy_assign_indices(
static_cast<void *
>(buffer1),
252 static_cast<void *
>(buffer2),
270 int buffer1[10] = {0};
271 int buffer2[10] = {0};
272 CPPType_TestType.relocate_construct(
static_cast<void *
>(buffer1),
static_cast<void *
>(buffer2));
275 CPPType_TestType.relocate_construct_n(
276 static_cast<void *
>(buffer1),
static_cast<void *
>(buffer2), 3);
286 CPPType_TestType.relocate_construct_indices(
static_cast<void *
>(buffer1),
287 static_cast<void *
>(buffer2),
305 int buffer1[10] = {0};
306 int buffer2[10] = {0};
307 CPPType_TestType.relocate_assign(
static_cast<void *
>(buffer1),
static_cast<void *
>(buffer2));
310 CPPType_TestType.relocate_assign_n(
311 static_cast<void *
>(buffer1),
static_cast<void *
>(buffer2), 3);
321 CPPType_TestType.relocate_assign_indices(
static_cast<void *
>(buffer1),
322 static_cast<void *
>(buffer2),
341 int buffer2[10] = {0};
342 CPPType_TestType.fill_assign_n(
static_cast<void *
>(&buffer1),
static_cast<void *
>(buffer2), 3);
351 CPPType_TestType.fill_assign_indices(
static_cast<void *
>(&buffer1),
352 static_cast<void *
>(buffer2),
370 int buffer2[10] = {0};
371 CPPType_TestType.fill_construct_n(
372 static_cast<void *
>(&buffer1),
static_cast<void *
>(buffer2), 3);
381 CPPType_TestType.fill_construct_indices(
static_cast<void *
>(&buffer1),
382 static_cast<void *
>(buffer2),
400 std::stringstream ss;
402 std::string text = ss.str();
421 std::array<std::string, 5>
array = {
"a",
"b",
"c",
"d",
"e"};
422 std::array<std::string, 3> array_compressed;
#define BLI_CPP_TYPE_REGISTER(TYPE_NAME, FLAGS)
static const CPPType & get()
void print(const void *value, std::stringstream &ss) const
void default_construct(void *ptr) const
void value_initialize(void *ptr) const
static IndexMask from_indices(Span< T > indices, LinearAllocator<> &memory)
void append(const T &value)
const CPPType & CPPType_TestType
static void SetUpTestSuite()
#define EXPECT_FALSE(result)
#define EXPECT_TRUE(result)
static const int move_assigned_from_value
static const int move_constructed_from_value
TEST_F(BlfLoadTest, load)
static const int move_constructed_value
static const int copy_assigned_from_value
static const int copy_constructed_from_value
static const int move_assigned_value
static const int destructed_value
static const int default_constructed_value
static const int copy_assigned_value
static const int copy_constructed_value
unsigned __int64 uint64_t
void register_cpp_types()
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
void hash_unique_default(const T &value, UniqueHashBytes &hash)
friend std::ostream & operator<<(std::ostream &stream, const TestType &value)
TestType & operator=(const TestType &other)
friend bool operator==(const TestType &, const TestType &)
TestType & operator=(TestType &&other) noexcept
TestType(TestType &&other) noexcept
TestType(const TestType &other)