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

#include <IOHandler.h>

Collaboration diagram for lldb_private::IOHandlerStack:
Collaboration graph
[legend]

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)
 
ConstString GetTopIOHandlerControlSequence (char ch)
 
const char * GetTopIOHandlerCommandPrefix ()
 
const char * GetTopIOHandlerHelpPrologue ()
 
void PrintAsync (Stream *stream, const char *s, size_t len)
 

Protected Types

typedef std::vector< lldb::IOHandlerSP > collection
 

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 470 of file IOHandler.h.

Member Typedef Documentation

◆ collection

typedef std::vector<lldb::IOHandlerSP> lldb_private::IOHandlerStack::collection
protected

Definition at line 546 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 522 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 474 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()

ConstString 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 489 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 518 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 504 of file IOHandler.h.

References m_mutex, m_stack, m_top, and sp.

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

◆ PrintAsync()

void IOHandlerStack::PrintAsync ( Stream stream,
const char *  s,
size_t  len 
)

◆ Push()

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

Definition at line 479 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 548 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 547 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: