LLDB mainline
|
#include <SBBroadcaster.h>
Public Member Functions | |
SBBroadcaster () | |
SBBroadcaster (const char *name) | |
SBBroadcaster (const SBBroadcaster &rhs) | |
const SBBroadcaster & | operator= (const SBBroadcaster &rhs) |
~SBBroadcaster () | |
operator bool () const | |
bool | IsValid () const |
void | Clear () |
void | BroadcastEventByType (uint32_t event_type, bool unique=false) |
void | BroadcastEvent (const lldb::SBEvent &event, bool unique=false) |
void | AddInitialEventsToListener (const lldb::SBListener &listener, uint32_t requested_events) |
uint32_t | AddListener (const lldb::SBListener &listener, uint32_t event_mask) |
const char * | GetName () const |
bool | EventTypeHasListeners (uint32_t event_type) |
bool | RemoveListener (const lldb::SBListener &listener, uint32_t event_mask=UINT32_MAX) |
bool | operator== (const lldb::SBBroadcaster &rhs) const |
bool | operator!= (const lldb::SBBroadcaster &rhs) const |
bool | operator< (const lldb::SBBroadcaster &rhs) const |
Protected Member Functions | |
SBBroadcaster (lldb_private::Broadcaster *broadcaster, bool owns) | |
lldb_private::Broadcaster * | get () const |
void | reset (lldb_private::Broadcaster *broadcaster, bool owns) |
Private Attributes | |
lldb::BroadcasterSP | m_opaque_sp |
lldb_private::Broadcaster * | m_opaque_ptr = nullptr |
Friends | |
class | SBCommandInterpreter |
class | SBCommunication |
class | SBDebugger |
class | SBEvent |
class | SBListener |
class | SBProcess |
class | SBTarget |
Definition at line 16 of file SBBroadcaster.h.
SBBroadcaster::SBBroadcaster | ( | ) |
Definition at line 19 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA.
SBBroadcaster::SBBroadcaster | ( | const char * | name | ) |
Definition at line 21 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, and m_opaque_sp.
SBBroadcaster::SBBroadcaster | ( | const SBBroadcaster & | rhs | ) |
Definition at line 31 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA.
SBBroadcaster::~SBBroadcaster | ( | ) |
Definition at line 46 of file SBBroadcaster.cpp.
References reset().
|
protected |
Definition at line 28 of file SBBroadcaster.cpp.
void SBBroadcaster::AddInitialEventsToListener | ( | const lldb::SBListener & | listener, |
uint32_t | requested_events | ||
) |
Definition at line 73 of file SBBroadcaster.cpp.
References lldb_private::Broadcaster::AddInitialEventsToListener(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb::SBListener::m_opaque_sp.
uint32_t SBBroadcaster::AddListener | ( | const lldb::SBListener & | listener, |
uint32_t | event_mask | ||
) |
Definition at line 82 of file SBBroadcaster.cpp.
References lldb_private::Broadcaster::AddListener(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb::SBListener::m_opaque_sp.
void SBBroadcaster::BroadcastEvent | ( | const lldb::SBEvent & | event, |
bool | unique = false |
||
) |
Definition at line 60 of file SBBroadcaster.cpp.
References lldb_private::Broadcaster::BroadcastEvent(), lldb_private::Broadcaster::BroadcastEventIfUnique(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
void SBBroadcaster::BroadcastEventByType | ( | uint32_t | event_type, |
bool | unique = false |
||
) |
Definition at line 48 of file SBBroadcaster.cpp.
References lldb_private::Broadcaster::BroadcastEvent(), lldb_private::Broadcaster::BroadcastEventIfUnique(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
void SBBroadcaster::Clear | ( | ) |
Definition at line 136 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, and m_opaque_sp.
bool SBBroadcaster::EventTypeHasListeners | ( | uint32_t | event_type | ) |
Definition at line 99 of file SBBroadcaster.cpp.
References lldb_private::Broadcaster::EventTypeHasListeners(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
protected |
Definition at line 116 of file SBBroadcaster.cpp.
References m_opaque_ptr.
Referenced by lldb::SBEvent::BroadcasterMatchesRef(), lldb::SBListener::GetNextEventForBroadcaster(), lldb::SBListener::GetNextEventForBroadcasterWithType(), lldb::SBListener::PeekAtNextEventForBroadcaster(), lldb::SBListener::PeekAtNextEventForBroadcasterWithType(), lldb::SBListener::StartListeningForEvents(), lldb::SBListener::StopListeningForEvents(), lldb::SBListener::WaitForEventForBroadcaster(), and lldb::SBListener::WaitForEventForBroadcasterWithType().
const char * SBBroadcaster::GetName | ( | ) | const |
Definition at line 91 of file SBBroadcaster.cpp.
References lldb_private::Broadcaster::GetBroadcasterName(), lldb_private::ConstString::GetCString(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBBroadcaster::IsValid | ( | ) | const |
Definition at line 126 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by lldb::SBListener::GetNextEventForBroadcaster(), lldb::SBListener::GetNextEventForBroadcasterWithType(), lldb::SBListener::PeekAtNextEventForBroadcaster(), lldb::SBListener::PeekAtNextEventForBroadcasterWithType(), lldb::SBListener::StartListeningForEvents(), lldb::SBListener::StopListeningForEvents(), lldb::SBListener::WaitForEventForBroadcaster(), and lldb::SBListener::WaitForEventForBroadcasterWithType().
|
explicit |
Definition at line 130 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA.
bool SBBroadcaster::operator!= | ( | const lldb::SBBroadcaster & | rhs | ) | const |
Definition at line 149 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBBroadcaster::operator< | ( | const lldb::SBBroadcaster & | rhs | ) | const |
Definition at line 155 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
const SBBroadcaster & SBBroadcaster::operator= | ( | const SBBroadcaster & | rhs | ) |
Definition at line 36 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, and m_opaque_sp.
bool SBBroadcaster::operator== | ( | const lldb::SBBroadcaster & | rhs | ) | const |
Definition at line 143 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBBroadcaster::RemoveListener | ( | const lldb::SBListener & | listener, |
uint32_t | event_mask = UINT32_MAX |
||
) |
Definition at line 107 of file SBBroadcaster.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, lldb::SBListener::m_opaque_sp, and lldb_private::Broadcaster::RemoveListener().
|
protected |
Definition at line 118 of file SBBroadcaster.cpp.
References m_opaque_ptr, and m_opaque_sp.
Referenced by lldb::SBEvent::GetBroadcaster(), and ~SBBroadcaster().
|
friend |
Definition at line 64 of file SBBroadcaster.h.
|
friend |
Definition at line 65 of file SBBroadcaster.h.
|
friend |
Definition at line 66 of file SBBroadcaster.h.
|
friend |
Definition at line 67 of file SBBroadcaster.h.
|
friend |
Definition at line 68 of file SBBroadcaster.h.
|
friend |
Definition at line 69 of file SBBroadcaster.h.
|
friend |
Definition at line 70 of file SBBroadcaster.h.
|
private |
Definition at line 80 of file SBBroadcaster.h.
Referenced by AddInitialEventsToListener(), AddListener(), BroadcastEvent(), BroadcastEventByType(), Clear(), EventTypeHasListeners(), get(), GetName(), operator!=(), operator<(), operator=(), operator==(), RemoveListener(), reset(), and SBBroadcaster().
|
private |
Definition at line 79 of file SBBroadcaster.h.
Referenced by Clear(), operator=(), reset(), and SBBroadcaster().