Home
last modified time | relevance | path

Searched refs:ILifecycle (Results 1 - 8 of 8) sorted by relevance

/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/
H A Dintf_lifecycle.h28 META_REGISTER_INTERFACE(ILifecycle, "643ebb4f-bf7b-43b0-9900-9082b992ca0e")
37 class ILifecycle : public CORE_NS::IInterface { class
38 META_INTERFACE(CORE_NS::IInterface, ILifecycle)
H A Dobject_macros.h22 * @brief Implement reference counting with ILifecycle support for destruction.
33 if (auto i = this->GetInterface(::META_NS::ILifecycle::UID)) { \
34 static_cast<::META_NS::ILifecycle*>(i)->Destroy(); \
H A Dinterface_helpers.h268 * @brief Check if list of interfaces (or their base classes) contains ILifecycle
271 constexpr bool HAS_ILIFECYCLE = (false || ... || BASE_NS::is_convertible_v<Interfaces*, ILifecycle*>);
304 if (auto i = this->GetInterface(ILifecycle::UID)) { in GetInterface()
305 static_cast<ILifecycle*>(i)->Destroy(); in GetInterface()
/foundation/graphic/graphic_3d/lume/metaobject/test/src/ext/
H A DInterfaceHelpersTest.cpp138 struct IDervivedLifecycle : ILifecycle {
139 META_INTERFACE(ILifecycle, IDervivedLifecycle, "c891f671-9e80-4d31-8247-e74a2a2fc406");
149 struct IOtherDervivedLifecycle : ILifecycle {
150 META_INTERFACE(ILifecycle, IOtherDervivedLifecycle, "c981f671-9e80-4d31-8247-e74a2a2fc406");
173 static_assert(HAS_ILIFECYCLE<BaseA, BaseB, ILifecycle, BaseC>); in HWTEST_F()
179 EXPECT_TRUE(c.GetInterface(ILifecycle::UID)); in HWTEST_F()
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/
H A Dobject.h56 class BaseObjectFwd : public IntroduceInterfaces<IObjectInstance, IObjectFlags, IDerived, ILifecycle, Interfaces...>,
59 using Super = IntroduceInterfaces<IObjectInstance, IObjectFlags, IDerived, ILifecycle, Interfaces...>;
164 protected: // ILifecycle
183 if (auto builder = interface_cast<META_NS::ILifecycle>(object_)) {
/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dbase_object.h38 class BaseObject : public IntroduceInterfaces<IObjectInstance, IObjectFlags, IDerived, ILifecycle> {
66 // ILifecycle
H A Dobject_registry.cpp200 if (auto o = (*it)->GetInterface<ILifecycle>()) { in SetObjectInstanceIds()
230 if (auto ctor = (*it)->GetInterface<ILifecycle>()) { in BuildObject()
/foundation/graphic/graphic_3d/lume/metaobject/test/src/base/
H A DBaseObjectTest.cpp64 IDerived::UID, ILifecycle::UID };

Completed in 6 milliseconds