LLDB  mainline
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
lldb_private::Listener Class Reference

#include <Listener.h>

Inheritance diagram for lldb_private::Listener:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::Listener:
Collaboration graph
[legend]

Public Types

typedef bool(* HandleBroadcastCallback) (lldb::EventSP &event_sp, void *baton)
 

Public Member Functions

 ~Listener ()
 
void AddEvent (lldb::EventSP &event)
 
void Clear ()
 
const char * GetName ()
 
uint32_t StartListeningForEventSpec (lldb::BroadcasterManagerSP manager_sp, const BroadcastEventSpec &event_spec)
 
bool StopListeningForEventSpec (lldb::BroadcasterManagerSP manager_sp, const BroadcastEventSpec &event_spec)
 
uint32_t StartListeningForEvents (Broadcaster *broadcaster, uint32_t event_mask)
 
uint32_t StartListeningForEvents (Broadcaster *broadcaster, uint32_t event_mask, HandleBroadcastCallback callback, void *callback_user_data)
 
bool StopListeningForEvents (Broadcaster *broadcaster, uint32_t event_mask)
 
EventPeekAtNextEvent ()
 
EventPeekAtNextEventForBroadcaster (Broadcaster *broadcaster)
 
EventPeekAtNextEventForBroadcasterWithType (Broadcaster *broadcaster, uint32_t event_type_mask)
 
bool GetEvent (lldb::EventSP &event_sp, const Timeout< std::micro > &timeout)
 
bool GetEventForBroadcaster (Broadcaster *broadcaster, lldb::EventSP &event_sp, const Timeout< std::micro > &timeout)
 
bool GetEventForBroadcasterWithType (Broadcaster *broadcaster, uint32_t event_type_mask, lldb::EventSP &event_sp, const Timeout< std::micro > &timeout)
 
size_t HandleBroadcastEvent (lldb::EventSP &event_sp)
 

Static Public Member Functions

static lldb::ListenerSP MakeListener (const char *name)
 

Protected Member Functions

 Listener (const char *name)
 

Friends

class Broadcaster
 
class BroadcasterManager
 

Detailed Description

Definition at line 38 of file Listener.h.

Member Typedef Documentation

◆ HandleBroadcastCallback

typedef bool(* lldb_private::Listener::HandleBroadcastCallback) (lldb::EventSP &event_sp, void *baton)

Definition at line 40 of file Listener.h.

Constructor & Destructor Documentation

◆ Listener()

Listener::Listener ( const char *  name)
protected

◆ ~Listener()

Listener::~Listener ( )

Member Function Documentation

◆ AddEvent()

void Listener::AddEvent ( lldb::EventSP &  event)

◆ Clear()

void Listener::Clear ( )

◆ GetEvent()

bool Listener::GetEvent ( lldb::EventSP &  event_sp,
const Timeout< std::micro > &  timeout 
)

Definition at line 399 of file Listener.cpp.

Referenced by GetName().

◆ GetEventForBroadcaster()

bool Listener::GetEventForBroadcaster ( Broadcaster broadcaster,
lldb::EventSP &  event_sp,
const Timeout< std::micro > &  timeout 
)

Definition at line 393 of file Listener.cpp.

Referenced by GetName().

◆ GetEventForBroadcasterWithType()

bool Listener::GetEventForBroadcasterWithType ( Broadcaster broadcaster,
uint32_t  event_type_mask,
lldb::EventSP &  event_sp,
const Timeout< std::micro > &  timeout 
)

Definition at line 386 of file Listener.cpp.

Referenced by GetName().

◆ GetName()

const char* lldb_private::Listener::GetName ( )
inline

◆ HandleBroadcastEvent()

size_t Listener::HandleBroadcastEvent ( lldb::EventSP &  event_sp)

Definition at line 403 of file Listener.cpp.

References lldb_private::Broadcaster::GetBroadcasterImpl().

Referenced by GetName().

◆ MakeListener()

ListenerSP Listener::MakeListener ( const char *  name)
static

◆ PeekAtNextEvent()

Event * Listener::PeekAtNextEvent ( )

Definition at line 317 of file Listener.cpp.

Referenced by GetName().

◆ PeekAtNextEventForBroadcaster()

Event * Listener::PeekAtNextEventForBroadcaster ( Broadcaster broadcaster)

Definition at line 325 of file Listener.cpp.

Referenced by GetName().

◆ PeekAtNextEventForBroadcasterWithType()

Event * Listener::PeekAtNextEventForBroadcasterWithType ( Broadcaster broadcaster,
uint32_t  event_type_mask 
)

◆ StartListeningForEvents() [1/2]

uint32_t Listener::StartListeningForEvents ( Broadcaster broadcaster,
uint32_t  event_mask 
)

◆ StartListeningForEvents() [2/2]

uint32_t Listener::StartListeningForEvents ( Broadcaster broadcaster,
uint32_t  event_mask,
HandleBroadcastCallback  callback,
void *  callback_user_data 
)

◆ StartListeningForEventSpec()

uint32_t Listener::StartListeningForEventSpec ( lldb::BroadcasterManagerSP  manager_sp,
const BroadcastEventSpec event_spec 
)

Definition at line 427 of file Listener.cpp.

Referenced by GetName().

◆ StopListeningForEvents()

bool Listener::StopListeningForEvents ( Broadcaster broadcaster,
uint32_t  event_mask 
)

◆ StopListeningForEventSpec()

bool Listener::StopListeningForEventSpec ( lldb::BroadcasterManagerSP  manager_sp,
const BroadcastEventSpec event_spec 
)

Definition at line 455 of file Listener.cpp.

Referenced by GetName().

Friends And Related Function Documentation

◆ Broadcaster

friend class Broadcaster
friend

Definition at line 42 of file Listener.h.

◆ BroadcasterManager

friend class BroadcasterManager
friend

Definition at line 43 of file Listener.h.


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