Lines Matching refs:inventory

70   auto inventory = builder.CreateVector(inv_data, 10);  in CreateFlatBufferTest()  local
178 auto mloc = CreateMonster(builder, &vec, 150, 80, name, inventory, Color_Blue, in CreateFlatBufferTest()
250 auto inventory = monster->inventory(); in AccessFlatBufferTest() local
251 TEST_EQ(VectorLength(inventory), 10UL); // Works even if inventory is null. in AccessFlatBufferTest()
252 TEST_NOTNULL(inventory); in AccessFlatBufferTest()
255 std::vector<unsigned char> inv_vec(inventory->begin(), inventory->end()); in AccessFlatBufferTest()
256 for (auto it = inventory->begin(); it != inventory->end(); ++it) { in AccessFlatBufferTest()
257 auto indx = it - inventory->begin(); in AccessFlatBufferTest()
262 for (auto it = inventory->cbegin(); it != inventory->cend(); ++it) { in AccessFlatBufferTest()
263 auto indx = it - inventory->cbegin(); in AccessFlatBufferTest()
268 for (auto it = inventory->rbegin(); it != inventory->rend(); ++it) { in AccessFlatBufferTest()
269 auto indx = inventory->rend() - it; in AccessFlatBufferTest()
274 for (auto it = inventory->crbegin(); it != inventory->crend(); ++it) { in AccessFlatBufferTest()
275 auto indx = inventory->crend() - it; in AccessFlatBufferTest()
427 auto inventory = monster->mutable_inventory(); in MutateFlatBuffersTest() local
428 inventory->Mutate(9, 100); in MutateFlatBuffersTest()
429 TEST_EQ(inventory->Get(9), 100); in MutateFlatBuffersTest()
430 inventory->Mutate(9, 9); in MutateFlatBuffersTest()
495 auto &inventory = monster2->inventory; in ObjectFlatBuffersTest() local
496 TEST_EQ(inventory.size(), 10UL); in ObjectFlatBuffersTest()
498 for (auto it = inventory.begin(); it != inventory.end(); ++it) in ObjectFlatBuffersTest()
499 TEST_EQ(*it, inv_data[it - inventory.begin()]); in ObjectFlatBuffersTest()
2415 b.inventory.push_back(3); in EqualOperatorTest()
2417 b.inventory.clear(); in EqualOperatorTest()