LLDB  mainline
Public Member Functions | Private Member Functions | Private Attributes | List of all members
lldb_private::Stream::RawOstreamForward Class Reference

This is a wrapper class that exposes a raw_ostream interface that just forwards to an LLDB stream, allowing to reuse LLVM algorithms that take a raw_ostream within the LLDB code base. More...

#include "lldb/Utility/Stream.h"

Inheritance diagram for lldb_private::Stream::RawOstreamForward:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::Stream::RawOstreamForward:
Collaboration graph
[legend]

Public Member Functions

 RawOstreamForward (Stream &target, bool colors=false)
 

Private Member Functions

void write_impl (const char *Ptr, size_t Size) override
 
uint64_t current_pos () const override
 

Private Attributes

Streamm_target
 

Detailed Description

This is a wrapper class that exposes a raw_ostream interface that just forwards to an LLDB stream, allowing to reuse LLVM algorithms that take a raw_ostream within the LLDB code base.

Definition at line 390 of file Stream.h.

Constructor & Destructor Documentation

◆ RawOstreamForward()

lldb_private::Stream::RawOstreamForward::RawOstreamForward ( Stream target,
bool  colors = false 
)
inline

Definition at line 407 of file Stream.h.

Member Function Documentation

◆ current_pos()

uint64_t lldb_private::Stream::RawOstreamForward::current_pos ( ) const
inlineoverrideprivate

Definition at line 402 of file Stream.h.

References lldb_private::Stream::GetWrittenBytes().

◆ write_impl()

void lldb_private::Stream::RawOstreamForward::write_impl ( const char *  Ptr,
size_t  Size 
)
inlineoverrideprivate

Definition at line 398 of file Stream.h.

References lldb_private::Stream::Write().

Member Data Documentation

◆ m_target

Stream& lldb_private::Stream::RawOstreamForward::m_target
private

Definition at line 397 of file Stream.h.


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