Home
last modified time | relevance | path

Searched refs:replaceWith (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/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 addAlw… 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()
H A Dcontainer.cpp118 …place(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()
141 if (*it == replaceWith) { in Replace()
156 if (replaceWith) { in Replace()
157 *removedIt = replaceWith; in Replace()
163 added = replaceWith; in Replace()
173 if (!changed && addAlways && replaceWith && movedIt == children_.end()) { in Replace()
177 children_.push_back(replaceWith); in Replace()
178 added = replaceWith; in Replace()
H A Dflat_container.h28 …bool Replace(const META_NS::IObject::Ptr& child, const META_NS::IObject::Ptr& replaceWith, bool ad… in META_BEGIN_NAMESPACE()
H A Dcontainer.h28 …bool Replace(const META_NS::IObject::Ptr& child, const META_NS::IObject::Ptr& replaceWith, bool ad… in META_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/
H A Dintf_container.h197 bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith) in Replace() argument
199 return Replace(child, replaceWith, false); in Replace()
214 …virtual bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) =…
311 bool Replace(const T1& child, const T2& replaceWith, bool addAlways = false)
313 …e(interface_pointer_cast<IObject>(child), interface_pointer_cast<IObject>(replaceWith), addAlways);
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dattachment_container.cpp66 bool AttachmentContainer::Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool … in Replace() argument
69 if (child && AlreadyAttached(replaceWith)) { in Replace()
72 return ObjectContainerFwd::Replace(child, replaceWith, addAlways); in Replace()
H A Dmetadata.cpp285 bool MetadataPropertyContainer::Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith,… in Replace() argument
287 return impl_.Replace(child, replaceWith, addAlways); in Replace()
H A Dattachment_container.h52 … bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) override; in META_BEGIN_NAMESPACE()
H A Dmetadata.h98 … bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) override; in META_BEGIN_NAMESPACE()
/ohos5.0/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 in META_BEGIN_NAMESPACE()
90 return container_->Replace(child, replaceWith, addAlways); in META_BEGIN_NAMESPACE()
/ohos5.0/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 in META_BEGIN_NAMESPACE()
282 return GetContainer().Replace(child, replaceWith, addAlways); in META_BEGIN_NAMESPACE()