Lines Matching refs:p
32 for (auto&& p : Super::GetAllProperties()) { in ~ProxyObject()
33 p->OnChanged()->RemoveHandler(uintptr_t(this)); in ~ProxyObject()
51 for (auto&& p : Super::GetAllProperties()) { in Build()
52 p->OnChanged()->AddHandler(MakeCallback<IOnChanged>( in Build()
53 [this](auto p) { in Build() argument
54 if (p) { in Build()
55 OnPropertyChanged(p); in Build()
58 p), in Build()
73 static bool SerializeEmbeddedProxy(IProperty::Ptr p) in SerializeEmbeddedProxy() argument
76 if (auto proxy = GetPointer<IProxyObject>(p)) { in SerializeEmbeddedProxy()
86 if (auto p = interface_pointer_cast<IProperty>(info.object)) { in OnPropertyAdded() local
89 META_NS::SetObjectFlags(f, ObjectFlagBits::SERIALIZE, ShouldSerialise(p)); in OnPropertyAdded()
91 p->OnChanged()->AddHandler(MakeCallback<IOnChanged>( in OnPropertyAdded()
92 [this](auto p) { in OnPropertyAdded() argument
93 if (p) { in OnPropertyAdded()
94 OnPropertyChanged(p); in OnPropertyAdded()
97 p), in OnPropertyAdded()
104 if (auto p = interface_cast<IProperty>(info.object)) { in OnPropertyRemoved() local
105 p->OnChanged()->RemoveHandler(uintptr_t(this)); in OnPropertyRemoved()
113 void ProxyObject::OnPropertyChanged(const IProperty::Ptr& p) in OnPropertyChanged() argument
120 META_NS::SetObjectFlags(f, ObjectFlagBits::SERIALIZE, ShouldSerialise(p)); in OnPropertyChanged()
146 for (auto&& p : props) { in RefreshProperties()
147 if (auto tp = target->GetPropertyByName(p.first)) { in RefreshProperties()
148 auto res = proxyProperties_.insert({ p.first, p.second }); in RefreshProperties()
151 Super::RemoveProperty(p.second.GetProperty()); in RefreshProperties()
156 for (auto&& p : proxyProperties_) { in RefreshProperties()
157 Super::RemoveProperty(p.second.GetProperty()); in RefreshProperties()
190 for (auto&& p : Super::GetAllProperties()) { in ReflectHierarchy()
192 if (!proxyProperties_.count(p->GetName())) { in ReflectHierarchy()
193 if (auto proxy = GetPointer<IProxyObject>(p)) { in ReflectHierarchy()
194 ReflectTargetForProperty(m, p->GetName(), proxy); in ReflectHierarchy()
203 if (auto p = m->GetPropertyByName(name)) { in ReflectTargetForProperty() local
204 if (auto tp = GetPointer<IObject>(p)) { in ReflectTargetForProperty()
213 for (auto&& p : proxyProperties_) { in GetOverrides()
214 if (!p.second.IsDefaultValue()) { in GetOverrides()
215 res.push_back(p.second.GetProperty()); in GetOverrides()
252 if (auto p = Super::GetPropertyByName(property->GetName())) { in SetPropertyTarget() local
253 auto r = proxyProperties_.insert_or_assign(p->GetName(), DefaultValueBind(p)); in SetPropertyTarget()
255 res = p; in SetPropertyTarget()
265 auto p = DuplicatePropertyType(META_NS::GetObjectRegistry(), tp); in AddProxyProperty() local
266 if (p) { in AddProxyProperty()
267 auto res = proxyProperties_.insert_or_assign(p->GetName(), DefaultValueBind(p)); in AddProxyProperty()
269 AddProperty(p); in AddProxyProperty()
271 return p; in AddProxyProperty()
276 IProperty::Ptr p; in AddProxyProperty() local
279 p = AddProxyProperty(tp); in AddProxyProperty()
282 return p; in AddProxyProperty()
288 for (auto&& p : target->GetAllProperties()) { in PopulateAllProperties()
289 auto it = proxyProperties_.find(p->GetName()); in PopulateAllProperties()
291 AddProxyProperty(p); in PopulateAllProperties()
299 auto p = Super::GetPropertyByName(name); in GetPropertyByName() local
300 if (!p) { in GetPropertyByName()
301 p = AddProxyProperty(name); in GetPropertyByName()
303 return p; in GetPropertyByName()
311 void ProxyObject::RemoveProperty(const IProperty::Ptr& p) in RemoveProperty() argument
313 Super::RemoveProperty(p); in RemoveProperty()
314 proxyProperties_.erase(p->GetName()); in RemoveProperty()
329 bool ProxyObject::ShouldSerialise(const IProperty::Ptr& p) const in ShouldSerialise()
331 auto s = interface_cast<IStackProperty>(p); in ShouldSerialise()
333 (!IsFlagSet(p, ObjectFlagBits::NATIVE) && !proxyProperties_.count(p->GetName())) || in ShouldSerialise()
334 SerializeEmbeddedProxy(p); in ShouldSerialise()
342 for (auto&& p : Super::GetAllProperties()) { in UpdateSerializeState()
343 serialise = ShouldSerialise(p); in UpdateSerializeState()