LLDB mainline
Public Member Functions | Protected Types | Protected Attributes | Private Member Functions | List of all members
lldb_private::IOHandlerStack Class Reference

#include <IOHandler.h>

Public Member Functions

 IOHandlerStack ()=default
 
size_t GetSize () const
 
void Push (const lldb::IOHandlerSP &sp)
 
bool IsEmpty () const
 
lldb::IOHandlerSP Top ()
 
void Pop ()
 
std::recursive_mutex & GetMutex ()
 
bool IsTop (const lldb::IOHandlerSP &io_handler_sp) const
 
bool CheckTopIOHandlerTypes (IOHandler::Type top_type, IOHandler::Type second_top_type)
 
llvm::StringRef GetTopIOHandlerControlSequence (char ch)
 
const char * GetTopIOHandlerCommandPrefix ()
 
const char * GetTopIOHandlerHelpPrologue ()
 
bool PrintAsync (const char *s, size_t len, bool is_stdout)
 

Protected Types

typedef std::vector< lldb::IOHandlerSPcollection
 

Protected Attributes

collection m_stack
 
std::recursive_mutex m_mutex
 
IOHandlerm_top = nullptr
 

Private Member Functions

 IOHandlerStack (const IOHandlerStack &)=delete
 
const IOHandlerStackoperator= (const IOHandlerStack &)=delete
 

Detailed Description

Definition at line 462 of file IOHandler.h.

Member Typedef Documentation

◆ collection

Definition at line 539 of file IOHandler.h.

Constructor & Destructor Documentation

◆ IOHandlerStack() [1/2]

lldb_private::IOHandlerStack::IOHandlerStack ( )
default

◆ IOHandlerStack() [2/2]

lldb_private::IOHandlerStack::IOHandlerStack ( const IOHandlerStack )
privatedelete

Member Function Documentation

◆ CheckTopIOHandlerTypes()

bool lldb_private::IOHandlerStack::CheckTopIOHandlerTypes ( IOHandler::Type  top_type,
IOHandler::Type  second_top_type 
)
inline

Definition at line 514 of file IOHandler.h.

References m_mutex, and m_stack.

Referenced by lldb_private::Debugger::CheckTopIOHandlerTypes().

◆ GetMutex()

std::recursive_mutex & lldb_private::IOHandlerStack::GetMutex ( )
inline

◆ GetSize()

size_t lldb_private::IOHandlerStack::GetSize ( ) const
inline

Definition at line 466 of file IOHandler.h.

References m_mutex, and m_stack.

Referenced by lldb_private::Debugger::ClearIOHandlers().

◆ GetTopIOHandlerCommandPrefix()

const char * lldb_private::IOHandlerStack::GetTopIOHandlerCommandPrefix ( )
inline

◆ GetTopIOHandlerControlSequence()

llvm::StringRef lldb_private::IOHandlerStack::GetTopIOHandlerControlSequence ( char  ch)
inline

◆ GetTopIOHandlerHelpPrologue()

const char * lldb_private::IOHandlerStack::GetTopIOHandlerHelpPrologue ( )
inline

◆ IsEmpty()

bool lldb_private::IOHandlerStack::IsEmpty ( ) const
inline

Definition at line 481 of file IOHandler.h.

References m_mutex, and m_stack.

Referenced by lldb_private::Debugger::PopIOHandler().

◆ IsTop()

bool lldb_private::IOHandlerStack::IsTop ( const lldb::IOHandlerSP io_handler_sp) const
inline

Definition at line 510 of file IOHandler.h.

References m_top.

Referenced by lldb_private::Debugger::IsTopIOHandler().

◆ operator=()

const IOHandlerStack & lldb_private::IOHandlerStack::operator= ( const IOHandlerStack )
privatedelete

◆ Pop()

void lldb_private::IOHandlerStack::Pop ( )
inline

Definition at line 496 of file IOHandler.h.

References m_mutex, m_stack, m_top, and sp.

Referenced by lldb_private::Debugger::PopIOHandler().

◆ PrintAsync()

bool IOHandlerStack::PrintAsync ( const char *  s,
size_t  len,
bool  is_stdout 
)

Definition at line 128 of file IOHandler.cpp.

References m_mutex, m_top, and lldb_private::IOHandler::PrintAsync().

Referenced by lldb_private::Debugger::PrintAsync().

◆ Push()

void lldb_private::IOHandlerStack::Push ( const lldb::IOHandlerSP sp)
inline

Definition at line 471 of file IOHandler.h.

References m_mutex, m_stack, m_top, and sp.

Referenced by lldb_private::Debugger::PushIOHandler().

◆ Top()

lldb::IOHandlerSP lldb_private::IOHandlerStack::Top ( )
inline

Member Data Documentation

◆ m_mutex

std::recursive_mutex lldb_private::IOHandlerStack::m_mutex
mutableprotected

Definition at line 541 of file IOHandler.h.

Referenced by CheckTopIOHandlerTypes(), GetMutex(), GetSize(), IsEmpty(), Pop(), PrintAsync(), Push(), and Top().

◆ m_stack

collection lldb_private::IOHandlerStack::m_stack
protected

Definition at line 540 of file IOHandler.h.

Referenced by CheckTopIOHandlerTypes(), GetSize(), IsEmpty(), Pop(), Push(), and Top().

◆ m_top

IOHandler* lldb_private::IOHandlerStack::m_top = nullptr
protected

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