Home
last modified time | relevance | path

Searched refs:LazyForEachCacheChild (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/
H A Dlazy_for_each_builder.h54 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 Dlazy_for_each_builder.cpp50 … 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 Dmock_lazy_for_each_builder.h45 … 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 Dlazy_for_each_builder_syntax_test_ng.cpp681 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 Dlazy_for_each_syntax_test_ng.cpp1559 lazyForEachBuilder->expiringItem_["0"] = LazyForEachCacheChild(0, nullptr);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/
H A Dlazy_foreach.h47 std::unordered_map<std::string, NG::LazyForEachCacheChild>& expiringItems) override;
59 std::unordered_map<std::string, NG::LazyForEachCacheChild>& cachedItems) override {} in KeepRemovedItemInCache()
H A Dlazy_foreach.cpp73 std::unordered_map<std::string, NG::LazyForEachCacheChild>& expiringItems) in OnGetChildByIndexNew()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_adapter_impl.h128 … 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 Dnode_adapter_impl.cpp74 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 Djs_lazy_foreach_builder.h98 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()