• Home
  • Raw
  • Download

Lines Matching refs:ResourceKey

27   using HandleRemoveFunction = unique_function<Error(ResourceKey)>;
30 unique_function<void(ResourceKey, ResourceKey)>;
32 using RecordedResourcesMap = DenseMap<ResourceKey, ResourceT>;
35 HandleRemove = [&](ResourceKey K) -> Error { in SimpleResourceManager()
40 HandleTransfer = [this](ResourceKey DstKey, ResourceKey SrcKey) { in SimpleResourceManager()
66 void recordResource(ResourceKey K, ResourceT Val = ResourceT(), in recordResource()
73 void removeResource(ResourceKey K) { Resources.erase(K); } in removeResource()
77 void transferResources(ResourceKey DstKey, ResourceKey SrcKey, in transferResources()
94 Error handleRemoveResources(ResourceKey K) override { in handleRemoveResources()
98 void handleTransferResources(ResourceKey DstKey, in handleTransferResources()
99 ResourceKey SrcKey) override { in handleTransferResources()
103 static void transferNotAllowed(ResourceKey DstKey, ResourceKey SrcKey) { in transferNotAllowed()
119 SRM.setHandleRemove([&](ResourceKey K) -> Error { in TEST_F()
156 SRM.setHandleRemove([&](ResourceKey K) -> Error { in TEST_F()
170 [&](ResourceKey K) { SRM.recordResource(K); })); in TEST_F()
194 SRM.setHandleRemove([&](ResourceKey K) -> Error { in TEST_F()
232 EXPECT_THAT_ERROR(MR->withResourceKeyDo([](ResourceKey K) { in TEST_F()
252 [&](ResourceKey K) { ++SRM.getRecordedResources()[K]; })); in TEST_F()
262 [&](ResourceKey K) { ++SRM.getRecordedResources()[K]; })); in TEST_F()
293 SRM.setHandleTransfer([&](ResourceKey DstKey, ResourceKey SrcKey) { in TEST_F()
304 [&](ResourceKey K) { SRM.recordResource(K); })); in TEST_F()
343 SRM.setHandleTransfer([&](ResourceKey DstKey, ResourceKey SrcKey) { in TEST_F()
353 [&](ResourceKey K) { SRM.recordResource(K, 1); })); in TEST_F()
393 SRM.setHandleTransfer([&](ResourceKey DstKey, ResourceKey SrcKey) { in TEST_F()
415 cantFail(FooMR->withResourceKeyDo([&](ResourceKey K) { in TEST_F()
431 cantFail(FooMR->withResourceKeyDo([&](ResourceKey K) { in TEST_F()