LLDB mainline
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
lldb::SBBroadcaster Class Reference

#include <SBBroadcaster.h>

Public Member Functions

 SBBroadcaster ()
 
 SBBroadcaster (const char *name)
 
 SBBroadcaster (const SBBroadcaster &rhs)
 
const SBBroadcasteroperator= (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::Broadcasterget () const
 
void reset (lldb_private::Broadcaster *broadcaster, bool owns)
 

Private Attributes

lldb::BroadcasterSP m_opaque_sp
 
lldb_private::Broadcasterm_opaque_ptr = nullptr
 

Friends

class SBCommandInterpreter
 
class SBCommunication
 
class SBDebugger
 
class SBEvent
 
class SBListener
 
class SBProcess
 
class SBTarget
 

Detailed Description

Definition at line 16 of file SBBroadcaster.h.

Constructor & Destructor Documentation

◆ SBBroadcaster() [1/4]

SBBroadcaster::SBBroadcaster ( )

Definition at line 19 of file SBBroadcaster.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBBroadcaster() [2/4]

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() [3/4]

SBBroadcaster::SBBroadcaster ( const SBBroadcaster rhs)

Definition at line 31 of file SBBroadcaster.cpp.

References LLDB_INSTRUMENT_VA.

◆ ~SBBroadcaster()

SBBroadcaster::~SBBroadcaster ( )

Definition at line 46 of file SBBroadcaster.cpp.

References reset().

◆ SBBroadcaster() [4/4]

SBBroadcaster::SBBroadcaster ( lldb_private::Broadcaster broadcaster,
bool  owns 
)
protected

Definition at line 28 of file SBBroadcaster.cpp.

Member Function Documentation

◆ AddInitialEventsToListener()

void SBBroadcaster::AddInitialEventsToListener ( const lldb::SBListener listener,
uint32_t  requested_events 
)

◆ AddListener()

uint32_t SBBroadcaster::AddListener ( const lldb::SBListener listener,
uint32_t  event_mask 
)

◆ BroadcastEvent()

void SBBroadcaster::BroadcastEvent ( const lldb::SBEvent event,
bool  unique = false 
)

◆ BroadcastEventByType()

void SBBroadcaster::BroadcastEventByType ( uint32_t  event_type,
bool  unique = false 
)

◆ Clear()

void SBBroadcaster::Clear ( )

Definition at line 136 of file SBBroadcaster.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_ptr, and m_opaque_sp.

◆ EventTypeHasListeners()

bool SBBroadcaster::EventTypeHasListeners ( uint32_t  event_type)

◆ get()

Broadcaster * SBBroadcaster::get ( ) const
protected

◆ GetName()

const char * SBBroadcaster::GetName ( ) const

◆ IsValid()

bool SBBroadcaster::IsValid ( ) const

◆ operator bool()

SBBroadcaster::operator bool ( ) const
explicit

Definition at line 130 of file SBBroadcaster.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator!=()

bool SBBroadcaster::operator!= ( const lldb::SBBroadcaster rhs) const

Definition at line 149 of file SBBroadcaster.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ operator<()

bool SBBroadcaster::operator< ( const lldb::SBBroadcaster rhs) const

Definition at line 155 of file SBBroadcaster.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ operator=()

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.

◆ operator==()

bool SBBroadcaster::operator== ( const lldb::SBBroadcaster rhs) const

Definition at line 143 of file SBBroadcaster.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ RemoveListener()

bool SBBroadcaster::RemoveListener ( const lldb::SBListener listener,
uint32_t  event_mask = UINT32_MAX 
)

◆ reset()

void SBBroadcaster::reset ( lldb_private::Broadcaster broadcaster,
bool  owns 
)
protected

Definition at line 118 of file SBBroadcaster.cpp.

References m_opaque_ptr, and m_opaque_sp.

Referenced by lldb::SBEvent::GetBroadcaster(), and ~SBBroadcaster().

Friends And Related Function Documentation

◆ SBCommandInterpreter

friend class SBCommandInterpreter
friend

Definition at line 64 of file SBBroadcaster.h.

◆ SBCommunication

friend class SBCommunication
friend

Definition at line 65 of file SBBroadcaster.h.

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 66 of file SBBroadcaster.h.

◆ SBEvent

friend class SBEvent
friend

Definition at line 67 of file SBBroadcaster.h.

◆ SBListener

friend class SBListener
friend

Definition at line 68 of file SBBroadcaster.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 69 of file SBBroadcaster.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 70 of file SBBroadcaster.h.

Member Data Documentation

◆ m_opaque_ptr

lldb_private::Broadcaster* lldb::SBBroadcaster::m_opaque_ptr = nullptr
private

◆ m_opaque_sp

lldb::BroadcasterSP lldb::SBBroadcaster::m_opaque_sp
private

Definition at line 79 of file SBBroadcaster.h.

Referenced by Clear(), operator=(), reset(), and SBBroadcaster().


The documentation for this class was generated from the following files: