Home
last modified time | relevance | path

Searched refs:replaceWith (Results 1 - 14 of 14) sorted by relevance

/foundation/graphic/graphic_3d/lume/metaobject/src/container/
H A Dflat_container.cpp104 bool FlatContainer::Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) in Replace() argument
111 if (replaceWith && !IsCompatible(replaceWith)) { in Replace()
122 if (removed == replaceWith) { in Replace()
125 if (replaceWith) { in Replace()
126 children_[index] = replaceWith; in Replace()
127 added = replaceWith; in Replace()
131 } else if (addAlways && replaceWith) { in Replace()
132 children_.push_back(replaceWith); in Replace()
133 added = replaceWith; in Replace()
[all...]
H A Dcontainer.cpp118 bool Container::Replace(const META_NS::IObject::Ptr& child, const META_NS::IObject::Ptr& replaceWith, bool addAlways) in Replace() argument
128 if (replaceWith && (!IsCompatible(replaceWith) || !CheckLoop(replaceWith))) { in Replace()
134 // Check if 'child' and 'replaceWith' can already be found from the container in Replace()
141 if (*it == replaceWith) { in Replace()
151 // 'child' and 'replaceWith' are the same item (which is already in the container) in Replace()
156 if (replaceWith) { in Replace()
157 *removedIt = replaceWith; in Replace()
159 // 'replaceWith' wa in Replace()
[all...]
H A Dflat_container.h28 bool Replace(const META_NS::IObject::Ptr& child, const META_NS::IObject::Ptr& replaceWith, bool addAlways) override;
H A Dcontainer.h28 bool Replace(const META_NS::IObject::Ptr& child, const META_NS::IObject::Ptr& replaceWith, bool addAlways) override;
/foundation/graphic/graphic_3d/lume/metaobject/test/src/interface/
H A DIntfContainerTest.cpp365 const auto replaceWith = interface_pointer_cast<IObject>(CreateTestType("Replaced")); in HWTEST_P() local
367 EXPECT_TRUE(container_->Replace(replace, replaceWith, false)); in HWTEST_P()
369 EXPECT_THAT(container_->GetAll(), Contains(replaceWith)); in HWTEST_P()
373 const auto added = ChildChangedInfo { replaceWith, index, container_ }; in HWTEST_P()
392 const auto replaceWith = children[expectedCount / 2]; in HWTEST_P() local
394 ASSERT_EQ(replace, replaceWith); in HWTEST_P()
396 EXPECT_TRUE(container_->Replace(replace, replaceWith)); in HWTEST_P()
398 EXPECT_THAT(container_->GetAll(), Contains(replaceWith)); in HWTEST_P()
429 const auto replaceWith = interface_pointer_cast<IObject>(CreateTestType("Replaced")); in HWTEST_P() local
439 EXPECT_FALSE(container_->Replace({}, replaceWith, fals in HWTEST_P()
480 const auto replaceWith = interface_pointer_cast<IObject>(CreateTestType("Replaced")); HWTEST_P() local
830 const auto replaceWith = children[indexReplace]; HWTEST_F() local
855 const auto replaceWith = children[indexReplaceWith]; HWTEST_F() local
882 const auto replaceWith = children[indexReplaceWith]; HWTEST_F() local
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/
H A Dintf_container.h192 * adds replaceWith to the container, depending on addAlways.
193 * @param replaceWith The item to replace the child with. If null, the child is removed.
194 * @return True if any changes were made in the container as a result of this call, or if child == replaceWith
197 bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith) in Replace() argument
199 return Replace(child, replaceWith, false); in Replace()
204 * @note If both child and replaceWith are already in the container, child is removed and replaceWith
207 * adds replaceWith to the container, depending on addAlways.
208 * @param replaceWith The item to replace the child with. If null, the child is removed.
209 * @param addAlways If true, and if child is not found from the container, adds replaceWith t
311 Replace(const T1& child, const T2& replaceWith, bool addAlways = false) Replace() argument
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dattachment_container.cpp66 bool AttachmentContainer::Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) in Replace() argument
69 if (child && AlreadyAttached(replaceWith)) { in Replace()
72 return ObjectContainerFwd::Replace(child, replaceWith, addAlways); in Replace()
H A Dattachment_container.h52 bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) override;
H A Dmetadata.cpp285 bool MetadataPropertyContainer::Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) in Replace() argument
287 return impl_.Replace(child, replaceWith, addAlways); in Replace()
H A Dmetadata.h98 bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) override;
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/
H A Dobject_container.h88 bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) override
90 return container_->Replace(child, replaceWith, addAlways);
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/Util/include/util/
H A Dio_util.h88 // Replace all instances of text dir's files with replaceWith, recursively
91 ::string_view replaceWith);
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/Util/src/util/
H A Dio_util.cpp339 BASE_NS::string_view replaceWith) in ReplaceTextInFiles()
341 auto replace = [&text, &replaceWith](BASE_NS::string& stringContents) { in ReplaceTextInFiles()
344 pos += replaceWith.size(); in ReplaceTextInFiles()
338 ReplaceTextInFiles(CORE_NS::IFileManager& fileManager, BASE_NS::string_view folderUri, BASE_NS::string_view text, BASE_NS::string_view replaceWith) ReplaceTextInFiles() argument
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/
H A Danimation.h280 bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) override
282 return GetContainer().Replace(child, replaceWith, addAlways);

Completed in 8 milliseconds