LLDB mainline
|
#include <Event.h>
Public Member Functions | |
Event (Broadcaster *broadcaster, uint32_t event_type, EventData *data=nullptr) | |
Event (Broadcaster *broadcaster, uint32_t event_type, const lldb::EventDataSP &event_data_sp) | |
Event (uint32_t event_type, EventData *data=nullptr) | |
Event (uint32_t event_type, const lldb::EventDataSP &event_data_sp) | |
~Event () | |
void | Dump (Stream *s) const |
EventData * | GetData () |
const EventData * | GetData () const |
void | SetData (EventData *new_data) |
uint32_t | GetType () const |
void | SetType (uint32_t new_type) |
Broadcaster * | GetBroadcaster () const |
bool | BroadcasterIs (Broadcaster *broadcaster) |
void | Clear () |
void | AddPendingListener (lldb::ListenerSP pending_listener_sp) |
This is used by Broadcasters with Primary Listeners to store the other Listeners till after the Event's DoOnRemoval has completed. | |
Private Member Functions | |
void | DoOnRemoval () |
void | SetBroadcaster (Broadcaster *broadcaster) |
Event (const Event &)=delete | |
const Event & | operator= (const Event &)=delete |
Event ()=delete | |
Private Attributes | |
Broadcaster::BroadcasterImplWP | m_broadcaster_wp |
uint32_t | m_type |
lldb::EventDataSP | m_data_sp |
std::vector< lldb::ListenerSP > | m_pending_listeners |
std::mutex | m_listeners_mutex |
Friends | |
class | Listener |
class | EventData |
class | Broadcaster::BroadcasterImpl |
Event::Event | ( | Broadcaster * | broadcaster, |
uint32_t | event_type, | ||
EventData * | data = nullptr |
||
) |
Event::Event | ( | Broadcaster * | broadcaster, |
uint32_t | event_type, | ||
const lldb::EventDataSP & | event_data_sp | ||
) |
Event::Event | ( | uint32_t | event_type, |
EventData * | data = nullptr |
||
) |
Event::Event | ( | uint32_t | event_type, |
const lldb::EventDataSP & | event_data_sp | ||
) |
|
default |
|
privatedelete |
|
privatedelete |
|
inline |
This is used by Broadcasters with Primary Listeners to store the other Listeners till after the Event's DoOnRemoval has completed.
Definition at line 232 of file Event.h.
References m_pending_listeners.
|
inline |
Definition at line 219 of file Event.h.
References m_broadcaster_wp.
Referenced by lldb::SBEvent::BroadcasterMatchesRef().
|
inline |
|
private |
Definition at line 83 of file Event.cpp.
References m_data_sp, m_listeners_mutex, and m_pending_listeners.
void Event::Dump | ( | Stream * | s | ) | const |
Definition at line 50 of file Event.cpp.
References lldb_private::Broadcaster::GetBroadcasterName(), lldb_private::StreamString::GetData(), lldb_private::Broadcaster::GetEventNames(), m_broadcaster_wp, m_data_sp, m_type, lldb_private::Stream::Printf(), and lldb_private::Stream::PutChar().
Referenced by lldb::SBEvent::GetDescription().
|
inline |
Definition at line 210 of file Event.h.
References m_broadcaster_wp.
Referenced by lldb::SBEvent::GetBroadcaster(), and lldb::SBEvent::GetBroadcasterClass().
|
inline |
Definition at line 200 of file Event.h.
References m_data_sp.
Referenced by lldb::SBEvent::GetDataFlavor(), lldb_private::Process::ProcessEventData::GetEventDataFromEvent(), lldb_private::Target::TargetEventData::GetEventDataFromEvent(), lldb_private::Thread::ThreadEventData::GetEventDataFromEvent(), lldb_private::EventDataBytes::GetEventDataFromEvent(), lldb_private::EventDataStructuredData::GetEventDataFromEvent(), and GetEventDataFromEventImpl().
|
inline |
|
inline |
Definition at line 206 of file Event.h.
References m_type.
Referenced by lldb_private::Process::ProcessEventData::DoOnRemoval(), lldb_private::Process::ProcessEventData::ForwardEventToPendingListeners(), and lldb::SBEvent::GetType().
|
inlineprivate |
Definition at line 246 of file Event.h.
References lldb_private::Broadcaster::GetBroadcasterImpl(), and m_broadcaster_wp.
|
inline |
|
inline |
|
friend |
|
private |
Definition at line 251 of file Event.h.
Referenced by BroadcasterIs(), Dump(), GetBroadcaster(), and SetBroadcaster().
|
private |
|
private |
Definition at line 255 of file Event.h.
Referenced by DoOnRemoval().
|
private |
Definition at line 254 of file Event.h.
Referenced by AddPendingListener(), and DoOnRemoval().
|
private |