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

#include <SBStream.h>

Collaboration diagram for lldb::SBStream:
Collaboration graph
[legend]

Public Member Functions

 SBStream ()
 
 SBStream (SBStream &&rhs)
 
 ~SBStream ()
 
 operator bool () const
 
bool IsValid () const
 
const char * GetData ()
 
size_t GetSize ()
 
void Printf (const char *format,...) __attribute__((format(printf
 
void void Print (const char *str)
 
void RedirectToFile (const char *path, bool append)
 
void RedirectToFile (lldb::SBFile file)
 
void RedirectToFile (lldb::FileSP file)
 
void RedirectToFileHandle (FILE *fh, bool transfer_fh_ownership)
 
void RedirectToFileDescriptor (int fd, bool transfer_fh_ownership)
 
void Clear ()
 

Protected Member Functions

lldb_private::Streamoperator-> ()
 
lldb_private::Streamget ()
 
lldb_private::Streamref ()
 

Private Member Functions

 SBStream (const SBStream &)=delete
 
const SBStreamoperator= (const SBStream &)=delete
 

Private Attributes

std::unique_ptr< lldb_private::Streamm_opaque_up
 
bool m_is_file = false
 

Friends

class SBAddress
 
class SBBlock
 
class SBBreakpoint
 
class SBBreakpointLocation
 
class SBBreakpointName
 
class SBCommandReturnObject
 
class SBCompileUnit
 
class SBData
 
class SBDebugger
 
class SBDeclaration
 
class SBEvent
 
class SBFileSpec
 
class SBFileSpecList
 
class SBFrame
 
class SBFunction
 
class SBInstruction
 
class SBInstructionList
 
class SBLaunchInfo
 
class SBLineEntry
 
class SBMemoryRegionInfo
 
class SBModule
 
class SBModuleSpec
 
class SBModuleSpecList
 
class SBProcess
 
class SBSection
 
class SBSourceManager
 
class SBStructuredData
 
class SBSymbol
 
class SBSymbolContext
 
class SBSymbolContextList
 
class SBTarget
 
class SBThread
 
class SBThreadPlan
 
class SBType
 
class SBTypeEnumMember
 
class SBTypeMemberFunction
 
class SBTypeMember
 
class SBValue
 
class SBWatchpoint
 

Detailed Description

Definition at line 18 of file SBStream.h.

Constructor & Destructor Documentation

◆ SBStream() [1/3]

SBStream::SBStream ( )

Definition at line 22 of file SBStream.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBStream() [2/3]

SBStream::SBStream ( SBStream &&  rhs)

Definition at line 26 of file SBStream.cpp.

◆ ~SBStream()

SBStream::~SBStream ( )
default

◆ SBStream() [3/3]

lldb::SBStream::SBStream ( const SBStream )
privatedelete

Member Function Documentation

◆ Clear()

void SBStream::Clear ( )

Definition at line 184 of file SBStream.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, m_is_file, and m_opaque_up.

◆ get()

lldb_private::Stream * SBStream::get ( )
protected

◆ GetData()

const char * SBStream::GetData ( )

◆ GetSize()

size_t SBStream::GetSize ( )

Definition at line 54 of file SBStream.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, m_is_file, and m_opaque_up.

Referenced by lldb::SBTypeSummary::CreateWithCallback().

◆ IsValid()

bool SBStream::IsValid ( ) const

Definition at line 31 of file SBStream.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator bool()

SBStream::operator bool ( ) const
explicit

Definition at line 35 of file SBStream.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator->()

lldb_private::Stream * SBStream::operator-> ( )
protected

Definition at line 174 of file SBStream.cpp.

References m_opaque_up.

◆ operator=()

const SBStream& lldb::SBStream::operator= ( const SBStream )
privatedelete

◆ Print()

void SBStream::Print ( const char *  str)

Definition at line 63 of file SBStream.cpp.

References LLDB_RECORD_METHOD, and Printf().

Referenced by lldb::SBStructuredData::SetFromJSON().

◆ Printf()

void SBStream::Printf ( const char *  format,
  ... 
)

◆ RedirectToFile() [1/3]

void SBStream::RedirectToFile ( const char *  path,
bool  append 
)

◆ RedirectToFile() [2/3]

void lldb::SBStream::RedirectToFile ( lldb::FileSP  file)

◆ RedirectToFile() [3/3]

void SBStream::RedirectToFile ( lldb::SBFile  file)

Definition at line 123 of file SBStream.cpp.

References lldb::SBFile::GetFile(), LLDB_RECORD_METHOD, and RedirectToFile().

◆ RedirectToFileDescriptor()

void SBStream::RedirectToFileDescriptor ( int  fd,
bool  transfer_fh_ownership 
)

◆ RedirectToFileHandle()

void SBStream::RedirectToFileHandle ( FILE *  fh,
bool  transfer_fh_ownership 
)

Definition at line 116 of file SBStream.cpp.

References LLDB_RECORD_METHOD, and RedirectToFile().

◆ ref()

lldb_private::Stream & SBStream::ref ( )
protected

Definition at line 178 of file SBStream.cpp.

References m_opaque_up.

Referenced by lldb::SBStructuredData::GetAsJSON(), lldb::SBFileSpecList::GetDescription(), lldb::SBSymbolContextList::GetDescription(), lldb::SBTypeEnumMember::GetDescription(), lldb::SBStructuredData::GetDescription(), lldb::SBTypeMember::GetDescription(), lldb::SBDeclaration::GetDescription(), lldb::SBAddress::GetDescription(), lldb::SBLineEntry::GetDescription(), lldb::SBInstructionList::GetDescription(), lldb::SBFileSpec::GetDescription(), lldb::SBSymbolContext::GetDescription(), lldb::SBSymbol::GetDescription(), lldb::SBEvent::GetDescription(), lldb::SBWatchpoint::GetDescription(), lldb::SBInstruction::GetDescription(), lldb::SBCompileUnit::GetDescription(), lldb::SBBlock::GetDescription(), lldb::SBData::GetDescription(), lldb::SBCommandReturnObject::GetDescription(), lldb::SBModuleSpec::GetDescription(), lldb::SBSection::GetDescription(), lldb::SBBreakpointLocation::GetDescription(), lldb::SBTypeMemberFunction::GetDescription(), lldb::SBModuleSpecList::GetDescription(), lldb::SBMemoryRegionInfo::GetDescription(), lldb::SBModule::GetDescription(), lldb::SBFrame::GetDescription(), lldb::SBThread::GetDescription(), lldb::SBType::GetDescription(), lldb::SBProcess::GetDescription(), lldb::SBDebugger::GetDescription(), lldb::SBValue::GetDescription(), lldb::SBTarget::GetDescription(), lldb::SBValue::GetExpressionPath(), lldb::SBThread::GetStatus(), lldb::SBThread::GetStopReasonExtendedInfoAsJSON(), Printf(), and lldb::SBLaunchInfo::SetScriptedProcessDictionary().

Friends And Related Function Documentation

◆ SBAddress

friend class SBAddress
friend

Definition at line 58 of file SBStream.h.

◆ SBBlock

friend class SBBlock
friend

Definition at line 59 of file SBStream.h.

◆ SBBreakpoint

friend class SBBreakpoint
friend

Definition at line 60 of file SBStream.h.

◆ SBBreakpointLocation

friend class SBBreakpointLocation
friend

Definition at line 61 of file SBStream.h.

◆ SBBreakpointName

friend class SBBreakpointName
friend

Definition at line 62 of file SBStream.h.

◆ SBCommandReturnObject

friend class SBCommandReturnObject
friend

Definition at line 63 of file SBStream.h.

◆ SBCompileUnit

friend class SBCompileUnit
friend

Definition at line 64 of file SBStream.h.

◆ SBData

friend class SBData
friend

Definition at line 65 of file SBStream.h.

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 66 of file SBStream.h.

◆ SBDeclaration

friend class SBDeclaration
friend

Definition at line 67 of file SBStream.h.

◆ SBEvent

friend class SBEvent
friend

Definition at line 68 of file SBStream.h.

◆ SBFileSpec

friend class SBFileSpec
friend

Definition at line 69 of file SBStream.h.

◆ SBFileSpecList

friend class SBFileSpecList
friend

Definition at line 70 of file SBStream.h.

◆ SBFrame

friend class SBFrame
friend

Definition at line 71 of file SBStream.h.

◆ SBFunction

friend class SBFunction
friend

Definition at line 72 of file SBStream.h.

◆ SBInstruction

friend class SBInstruction
friend

Definition at line 73 of file SBStream.h.

◆ SBInstructionList

friend class SBInstructionList
friend

Definition at line 74 of file SBStream.h.

◆ SBLaunchInfo

friend class SBLaunchInfo
friend

Definition at line 75 of file SBStream.h.

◆ SBLineEntry

friend class SBLineEntry
friend

Definition at line 76 of file SBStream.h.

◆ SBMemoryRegionInfo

friend class SBMemoryRegionInfo
friend

Definition at line 77 of file SBStream.h.

◆ SBModule

friend class SBModule
friend

Definition at line 78 of file SBStream.h.

◆ SBModuleSpec

friend class SBModuleSpec
friend

Definition at line 79 of file SBStream.h.

◆ SBModuleSpecList

friend class SBModuleSpecList
friend

Definition at line 80 of file SBStream.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 81 of file SBStream.h.

◆ SBSection

friend class SBSection
friend

Definition at line 82 of file SBStream.h.

◆ SBSourceManager

friend class SBSourceManager
friend

Definition at line 83 of file SBStream.h.

◆ SBStructuredData

friend class SBStructuredData
friend

Definition at line 84 of file SBStream.h.

◆ SBSymbol

friend class SBSymbol
friend

Definition at line 85 of file SBStream.h.

◆ SBSymbolContext

friend class SBSymbolContext
friend

Definition at line 86 of file SBStream.h.

◆ SBSymbolContextList

friend class SBSymbolContextList
friend

Definition at line 87 of file SBStream.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 88 of file SBStream.h.

◆ SBThread

friend class SBThread
friend

Definition at line 89 of file SBStream.h.

◆ SBThreadPlan

friend class SBThreadPlan
friend

Definition at line 90 of file SBStream.h.

◆ SBType

friend class SBType
friend

Definition at line 91 of file SBStream.h.

◆ SBTypeEnumMember

friend class SBTypeEnumMember
friend

Definition at line 92 of file SBStream.h.

◆ SBTypeMember

friend class SBTypeMember
friend

Definition at line 94 of file SBStream.h.

◆ SBTypeMemberFunction

friend class SBTypeMemberFunction
friend

Definition at line 93 of file SBStream.h.

◆ SBValue

friend class SBValue
friend

Definition at line 95 of file SBStream.h.

◆ SBWatchpoint

friend class SBWatchpoint
friend

Definition at line 96 of file SBStream.h.

Member Data Documentation

◆ m_is_file

bool lldb::SBStream::m_is_file = false
private

Definition at line 108 of file SBStream.h.

Referenced by Clear(), GetData(), GetSize(), RedirectToFile(), and RedirectToFileDescriptor().

◆ m_opaque_up

std::unique_ptr<lldb_private::Stream> lldb::SBStream::m_opaque_up
private

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