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]

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 434 of file Stream.h.

Constructor & Destructor Documentation

◆ RawOstreamForward()

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

Definition at line 451 of file Stream.h.

Member Function Documentation

◆ current_pos()

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

◆ write_impl()

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

Member Data Documentation

◆ m_target

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

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