Home
last modified time | relevance | path

Searched refs:IEvent (Results 1 - 25 of 53) sorted by relevance

123

/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/
H A Devent.h23 class IEvent;
27 class Event<IEvent> {
29 using EventType = IEvent;
31 Event(const BASE_NS::shared_ptr<IEvent>& ev) : event_(ev) {} in Event()
33 BASE_NS::shared_ptr<IEvent> operator->() const in operator ->()
37 IEvent& operator*() const in operator *()
41 operator BASE_NS::shared_ptr<IEvent>() const in operator BASE_NS::shared_ptr()
47 BASE_NS::shared_ptr<IEvent> event_;
50 class Event : public Event<IEvent> {
52 using Event<IEvent>
[all...]
H A Dintf_event.h30 META_REGISTER_INTERFACE(IEvent, "8b3c8322-54d6-4d1c-943c-207190576a4e")
32 class IEvent : public CORE_NS::IInterface { class
33 META_INTERFACE(CORE_NS::IInterface, IEvent);
96 inline auto Invoke(const IEvent::Ptr& event, Args&&... args) in Invoke()
H A Dintf_notify_on_change.h35 // META_EVENT(IEvent, OnChanged)
36 virtual BASE_NS::shared_ptr<IEvent> EventOnChanged() const = 0;
37 Event<IEvent> OnChanged() const in OnChanged()
H A Dintf_metadata.h61 virtual BASE_NS::vector<IEvent::Ptr> GetAllEvents() = 0;
62 virtual BASE_NS::vector<IEvent::ConstPtr> GetAllEvents() const = 0;
83 virtual IEvent::ConstPtr GetEventByName(BASE_NS::string_view name) const = 0;
84 virtual IEvent::Ptr GetEventByName(BASE_NS::string_view name) = 0;
113 virtual void AddEvent(const IEvent::Ptr&) = 0;
117 virtual void RemoveEvent(const IEvent::Ptr&) = 0;
H A Dstatic_object_metadata.h49 using ECtor = IEvent::Ptr();
50 using EMemberInit = bool(void*, const IEvent::Ptr&);
/foundation/ai/ai_engine/services/common/platform/event/source/
H A Devent.cpp82 DEFINE_IMPL_CLASS_CAST(EventCast, IEvent, Event);
86 void operator ()(IEvent *p) const in operator ()()
92 std::shared_ptr<IEvent> IEvent::MakeShared() in MakeShared()
94 std::shared_ptr<IEvent> sp(EventCast::Create(), EventDeleter()); in MakeShared()
98 bool IEvent::Wait(const int milliSeconds) const in Wait()
107 bool IEvent::Signal() in Signal()
112 bool IEvent::Reset() in Reset()
117 bool IEvent::IsSet() const in IsSet()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/evloop/src/
H A Dievent.cpp22 IEvent *IEvent::CreateEvent(EventTime timeout, int &errCode) in CreateEvent()
29 IEvent *event = new (std::nothrow) EventImpl(timeout); in CreateEvent()
38 IEvent *IEvent::CreateEvent(EventFd fd, EventsMask events, in CreateEvent()
52 IEvent *event = new (std::nothrow) EventImpl(fd, events, timeout); in CreateEvent()
H A Dievent.h29 class IEvent : public virtual RefObject { class
38 IEvent() = default;
39 DISABLE_COPY_ASSIGN_MOVE(IEvent);
50 static IEvent *CreateEvent(EventTime timeout, int &errCode);
51 static IEvent *CreateEvent(EventFd fd, EventsMask events, EventTime timeout, int &errCode);
54 virtual ~IEvent() {}; in ~IEvent()
H A Dievent_loop.h23 class IEvent;
33 virtual int Add(IEvent *event) = 0;
36 virtual int Remove(IEvent *event) = 0;
H A Devent_loop_epoll.cpp174 if ((events & static_cast<uint32_t>(IEvent::ET_READ)) != 0) { // LCOV_EXCL_BR_LINE in CalEpollEvents()
177 if ((events & static_cast<uint32_t>(IEvent::ET_WRITE)) != 0) { // LCOV_EXCL_BR_LINE in CalEpollEvents()
180 if ((events & static_cast<uint32_t>(IEvent::ET_ERROR)) != 0) { // LCOV_EXCL_BR_LINE in CalEpollEvents()
190 events |= IEvent::ET_READ; in CalEventsMask()
193 events |= IEvent::ET_WRITE; in CalEventsMask()
196 events |= IEvent::ET_ERROR; in CalEventsMask()
H A Devent_loop_impl.h42 int Add(IEvent *event) override;
43 int Remove(IEvent *event) override;
/foundation/ai/ai_engine/services/common/platform/event/include/
H A Di_event.h25 class IEvent { class
26 FORBID_COPY_AND_ASSIGN(IEvent);
27 FORBID_CREATE_BY_SELF(IEvent);
32 static std::shared_ptr<IEvent> MakeShared();
/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dmetadata.h51 void AddEvent(const IEvent::Ptr&) override;
52 void RemoveEvent(const IEvent::Ptr&) override;
62 BASE_NS::vector<IEvent::Ptr> GetAllEvents() override;
63 BASE_NS::vector<IEvent::ConstPtr> GetAllEvents() const override;
69 IEvent::ConstPtr GetEventByName(BASE_NS::string_view name) const override;
70 IEvent::Ptr GetEventByName(BASE_NS::string_view name) override;
76 BASE_NS::vector<IEvent::Ptr> eventMetadata_;
103 BASE_NS::shared_ptr<IEvent> EventOnAdded() const override;
104 BASE_NS::shared_ptr<IEvent> EventOnRemoved() const override;
105 BASE_NS::shared_ptr<IEvent> EventOnMove
[all...]
H A Dmetadata.cpp46 AddEvent(interface_pointer_cast<IEvent>(i->GetClone())); in Metadata()
122 void Metadata::AddEvent(const IEvent::Ptr& p) in AddEvent()
126 void Metadata::RemoveEvent(const IEvent::Ptr& p) in RemoveEvent()
185 BASE_NS::vector<IEvent::Ptr> Metadata::GetAllEvents() in GetAllEvents()
189 BASE_NS::vector<IEvent::ConstPtr> Metadata::GetAllEvents() const in GetAllEvents()
191 return GetAllImpl<BASE_NS::vector<IEvent::ConstPtr>>(eventMetadata_); in GetAllEvents()
222 IEvent::Ptr Metadata::GetEventByName(BASE_NS::string_view name) in GetEventByName()
224 return GetByName<IEvent::Ptr>(eventMetadata_, name); in GetEventByName()
226 IEvent::ConstPtr Metadata::GetEventByName(BASE_NS::string_view name) const in GetEventByName()
228 return GetByName<IEvent in GetEventByName()
[all...]
H A Dmeta_object.h72 void AddEvent(const IEvent::Ptr&) override;
73 void RemoveEvent(const IEvent::Ptr&) override;
82 BASE_NS::vector<IEvent::Ptr> GetAllEvents() override;
83 BASE_NS::vector<IEvent::ConstPtr> GetAllEvents() const override;
89 IEvent::ConstPtr GetEventByName(BASE_NS::string_view name) const override;
90 IEvent::Ptr GetEventByName(BASE_NS::string_view name) override;
H A Dmeta_object.cpp153 void MetaObject::AddEvent(const IEvent::Ptr& p) in AddEvent()
157 void MetaObject::RemoveEvent(const IEvent::Ptr& p) in RemoveEvent()
185 BASE_NS::vector<IEvent::Ptr> MetaObject::GetAllEvents() in GetAllEvents()
189 BASE_NS::vector<IEvent::ConstPtr> MetaObject::GetAllEvents() const in GetAllEvents()
209 IEvent::ConstPtr MetaObject::GetEventByName(BASE_NS::string_view name) const in GetEventByName()
213 IEvent::Ptr MetaObject::GetEventByName(BASE_NS::string_view name) in GetEventByName()
H A Dcontainer_observer.h44 mutable BASE_NS::pair<IEvent::Token, IOnChildChanged::InterfaceTypePtr> added_;
45 mutable BASE_NS::pair<IEvent::Token, IOnChildChanged::InterfaceTypePtr> removed_;
46 mutable BASE_NS::pair<IEvent::Token, IOnChildMoved::InterfaceTypePtr> moved_;
H A Dconnector.cpp43 return handle_ != IEvent::Token {}; in AttachTo()
56 handle_ = IEvent::Token {}; in DetachFrom()
H A Dclass_registry.h49 BASE_NS::shared_ptr<IEvent> EventOnClassRegistered() const override
53 BASE_NS::shared_ptr<IEvent> EventOnClassUnregistered() const override
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/
H A Devloop_timer_unit_test.cpp178 IEvent *timer = IEvent::CreateEvent(TIME_PIECE_1, errCode); in HWTEST_F()
234 IEvent *timer = IEvent::CreateEvent(TIME_PIECE_10, errCode); in HWTEST_F()
287 IEvent *timer = IEvent::CreateEvent(10, errCode); in HWTEST_F()
347 IEvent *timer = IEvent::CreateEvent(TIME_PIECE_10, errCode); in HWTEST_F()
404 IEvent *timer = IEvent in HWTEST_F()
[all...]
/foundation/ai/ai_engine/test/common/event/
H A Devent_test.cpp31 class IEvent;
32 std::shared_ptr<IEvent> g_event = IEvent::MakeShared();
/foundation/graphic/graphic_3d/lume/metaobject/src/container/
H A Dcontainer_base.h56 BASE_NS::shared_ptr<IEvent> EventOnAdded() const override;
57 BASE_NS::shared_ptr<IEvent> EventOnRemoved() const override;
58 BASE_NS::shared_ptr<IEvent> EventOnMoved() const override;
60 BASE_NS::shared_ptr<IEvent> EventOnAdding() const override;
61 BASE_NS::shared_ptr<IEvent> EventOnRemoving() const override;
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/
H A Devent_handler.h70 EventHandler(const BASE_NS::shared_ptr<IEvent>& event, const ICallable::Ptr& func) in EventHandler()
104 bool TypelessSubscribe(const IEvent::Ptr& event, const ICallable::Ptr& func) in TypelessSubscribe()
180 bool Subscribe(const BASE_NS::shared_ptr<IEvent>& event, Func func, const ITaskQueue::Ptr& queue = nullptr) in Subscribe()
191 bool Subscribe(const BASE_NS::shared_ptr<IEvent>& event, Func func, const BASE_NS::Uid& queueId) in Subscribe()
210 IEvent::WeakPtr event_;
211 IEvent::Token token_ {};
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/
H A Dobject.h355 void AddEvent(const IEvent::Ptr& p) override
359 void RemoveEvent(const IEvent::Ptr& p) override
387 BASE_NS::vector<IEvent::Ptr> GetAllEvents() override
391 BASE_NS::vector<IEvent::ConstPtr> GetAllEvents() const override
413 IEvent::ConstPtr GetEventByName(BASE_NS::string_view name) const override
417 IEvent::Ptr GetEventByName(BASE_NS::string_view name) override
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/
H A Dstaggered_animation_state.h67 IEvent::Ptr OnChildrenChanged() const noexcept
102 IEvent::Ptr onChildrenChanged_;

Completed in 8 milliseconds

123