Searched refs:LazyForEachCacheChild (Results 1 – 10 of 10) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/ |
H A D | lazy_for_each_builder.h | 54 using LazyForEachCacheChild = std::pair<int32_t, RefPtr<UINode>>; variable 319 … auto pair = cache.try_emplace(itemInfo.first, LazyForEachCacheChild(index, itemInfo.second)); in CacheItem() 425 void ProcessCachedIndex(std::unordered_map<std::string, LazyForEachCacheChild>& cache, in ProcessCachedIndex() 443 std::unordered_map<std::string, LazyForEachCacheChild>::iterator& expiringIter) in LoadCacheByIndex() 459 const LazyForEachCacheChild& node, const std::string& key, in LoadCacheByKey() 460 std::unordered_map<std::string, LazyForEachCacheChild>::iterator& expiringIter) in LoadCacheByKey() 534 const std::unordered_map<std::string, LazyForEachCacheChild>& GetCachedUINodeMap() in GetCachedUINodeMap() 614 int32_t index, std::unordered_map<std::string, LazyForEachCacheChild>& cachedItems) = 0; 618 std::unordered_map<std::string, LazyForEachCacheChild>& expiringItems) = 0; 629 std::unordered_map<std::string, NG::LazyForEachCacheChild>& cachedItems) = 0; [all …]
|
H A D | lazy_for_each_builder.cpp | 50 … expiringItem_.emplace(itemInfo.first, LazyForEachCacheChild(index, itemInfo.second)); in GetChildByIndex() 67 … expiringItem_.try_emplace(node.first, LazyForEachCacheChild(-1, std::move(node.second))); in OnDataReloaded() 205 … keyIter->second.first, LazyForEachCacheChild(-1, std::move(keyIter->second.second))); in OnDataChanged() 285 … fromIter->second.first, LazyForEachCacheChild(to, std::move(fromIter->second.second))); in OnDataMoved() 289 … toIter->second.first, LazyForEachCacheChild(from, std::move(toIter->second.second))); in OnDataMoved() 346 expiringItem_.emplace(node.first, LazyForEachCacheChild(index, node.second)); in OnDatasetChange() 668 expiringItem_.emplace(node.first, LazyForEachCacheChild(index, node.second)); in OperateReload() 707 std::unordered_map<std::string, LazyForEachCacheChild> cache; in PreBuild()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/syntax/ |
H A D | mock_lazy_for_each_builder.h | 45 … int32_t index, std::unordered_map<std::string, NG::LazyForEachCacheChild>& cachedItems) override in OnGetChildByIndex() 52 std::unordered_map<std::string, NG::LazyForEachCacheChild>& expiringItems) override in OnGetChildByIndexNew() 62 std::unordered_map<std::string, NG::LazyForEachCacheChild>& cachedItems) override {}; in KeepRemovedItemInCache()
|
H A D | lazy_for_each_builder_syntax_test_ng.cpp | 681 lazyForEachBuilder->expiringItem_[str1] = LazyForEachCacheChild(1, nullptr); 691 lazyForEachBuilder->expiringItem_[str2] = LazyForEachCacheChild(2, iter02->second.second); 701 lazyForEachBuilder->expiringItem_[str3] = LazyForEachCacheChild(3, iter03->second.second); 848 lazyForEachBuilder->expiringItem_[str0] = LazyForEachCacheChild(2, nullptr); 851 lazyForEachBuilder->expiringItem_[str1] = LazyForEachCacheChild(7, nullptr); 854 lazyForEachBuilder->expiringItem_[str2] = LazyForEachCacheChild(0, nullptr); 923 lazyForEachBuilder->expiringItem_[str1] = LazyForEachCacheChild(1, nullptr); 924 lazyForEachBuilder->expiringItem_[str2] = LazyForEachCacheChild(3, nullptr);
|
H A D | lazy_for_each_syntax_test_ng.cpp | 1559 lazyForEachBuilder->expiringItem_["0"] = LazyForEachCacheChild(0, nullptr);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/ |
H A D | lazy_foreach.h | 47 std::unordered_map<std::string, NG::LazyForEachCacheChild>& expiringItems) override; 59 std::unordered_map<std::string, NG::LazyForEachCacheChild>& cachedItems) override {} in KeepRemovedItemInCache()
|
H A D | lazy_foreach.cpp | 73 std::unordered_map<std::string, NG::LazyForEachCacheChild>& expiringItems) in OnGetChildByIndexNew()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_adapter_impl.h | 128 … int32_t index, std::unordered_map<std::string, LazyForEachCacheChild>& cachedItems) override; 139 std::unordered_map<std::string, LazyForEachCacheChild>& expiringItems) override in OnGetChildByIndexNew() 158 …NG::LazyForEachChild node, std::unordered_map<std::string, NG::LazyForEachCacheChild>& cachedItems… in KeepRemovedItemInCache()
|
H A D | node_adapter_impl.cpp | 74 int32_t index, std::unordered_map<std::string, LazyForEachCacheChild>& cachedItems) in OnGetChildByIndex()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_lazy_foreach_builder.h | 98 std::unordered_map<std::string, NG::LazyForEachCacheChild>& cachedItems) override in KeepRemovedItemInCache() 101 cachedItems.try_emplace(node.first, NG::LazyForEachCacheChild(-1, node.second)); in KeepRemovedItemInCache() 134 … int32_t index, std::unordered_map<std::string, NG::LazyForEachCacheChild>& cachedItems) override in OnGetChildByIndex() 191 std::unordered_map<std::string, NG::LazyForEachCacheChild>& expiringItems) override in OnGetChildByIndexNew()
|