29 : m_opaque_sp(owns ? broadcaster : nullptr), m_opaque_ptr(broadcaster) {}
32 : m_opaque_sp(rhs.m_opaque_sp), m_opaque_ptr(rhs.m_opaque_ptr) {
66 EventSP event_sp =
event.GetSP();
74 uint32_t requested_events) {
83 uint32_t event_mask) {
108 uint32_t event_mask) {
128 return this->
operator bool();
130SBBroadcaster::operator bool()
const {
133 return m_opaque_ptr !=
nullptr;
#define LLDB_INSTRUMENT_VA(...)
bool RemoveListener(const lldb::SBListener &listener, uint32_t event_mask=UINT32_MAX)
const char * GetName() const
void AddInitialEventsToListener(const lldb::SBListener &listener, uint32_t requested_events)
lldb_private::Broadcaster * m_opaque_ptr
void reset(lldb_private::Broadcaster *broadcaster, bool owns)
bool operator!=(const lldb::SBBroadcaster &rhs) const
bool operator==(const lldb::SBBroadcaster &rhs) const
const SBBroadcaster & operator=(const SBBroadcaster &rhs)
void BroadcastEventByType(uint32_t event_type, bool unique=false)
bool operator<(const lldb::SBBroadcaster &rhs) const
uint32_t AddListener(const lldb::SBListener &listener, uint32_t event_mask)
void BroadcastEvent(const lldb::SBEvent &event, bool unique=false)
bool EventTypeHasListeners(uint32_t event_type)
lldb_private::Broadcaster * get() const
lldb::BroadcasterSP m_opaque_sp
lldb::ListenerSP m_opaque_sp
An event broadcasting class.
uint32_t AddListener(const lldb::ListenerSP &listener_sp, uint32_t event_mask)
Listen for any events specified by event_mask.
bool EventTypeHasListeners(uint32_t event_type)
bool RemoveListener(const lldb::ListenerSP &listener_sp, uint32_t event_mask=UINT32_MAX)
Removes a Listener from this broadcasters list and frees the event bits specified by event_mask that ...
virtual void AddInitialEventsToListener(const lldb::ListenerSP &listener_sp, uint32_t requested_events)
const std::string & GetBroadcasterName()
Get this broadcaster's name.
void BroadcastEventIfUnique(lldb::EventSP &event_sp)
void BroadcastEvent(lldb::EventSP &event_sp)
Broadcast an event which has no associated data.
A uniqued constant string class.
const char * GetCString() const
Get the string value as a C string.
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Event > EventSP