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

A summary formatter that is defined in LLDB formmater bytecode. More...

#include <TypeSummary.h>

Inheritance diagram for lldb_private::BytecodeSummaryFormat:
Inheritance graph
[legend]

Public Member Functions

 BytecodeSummaryFormat (const TypeSummaryImpl::Flags &flags, std::unique_ptr< llvm::MemoryBuffer > bytecode)
 
bool FormatObject (ValueObject *valobj, std::string &dest, const TypeSummaryOptions &options) override
 
std::string GetDescription () override
 
std::string GetName () override
 Get the name of the Type Summary Provider, either a C++ class, a summary string, or a script function name.
 
- Public Member Functions inherited from lldb_private::TypeSummaryImpl
virtual ~TypeSummaryImpl ()=default
 
Kind GetKind () const
 
bool Cascades () const
 
bool SkipsPointers () const
 
bool SkipsReferences () const
 
bool NonCacheable () const
 
virtual bool DoesPrintChildren (ValueObject *valobj) const
 
virtual bool DoesPrintEmptyAggregates () const
 
virtual bool DoesPrintValue (ValueObject *valobj) const
 
bool IsOneLiner () const
 
virtual bool HideNames (ValueObject *valobj) const
 
void SetCascades (bool value)
 
void SetSkipsPointers (bool value)
 
void SetSkipsReferences (bool value)
 
virtual void SetDoesPrintChildren (bool value)
 
virtual void SetDoesPrintValue (bool value)
 
void SetIsOneLiner (bool value)
 
virtual void SetHideNames (bool value)
 
virtual void SetNonCacheable (bool value)
 
uint32_t GetOptions ()
 
void SetOptions (uint32_t value)
 
virtual bool FormatObject (ValueObject *valobj, std::string &dest, const TypeSummaryOptions &options)=0
 
virtual std::string GetDescription ()=0
 
virtual std::string GetName ()=0
 Get the name of the Type Summary Provider, either a C++ class, a summary string, or a script function name.
 
virtual std::string GetSummaryKindName ()
 Get the name of the kind of Summary Provider, either c++, summary string, script or python.
 
uint32_t & GetRevision ()
 

Static Public Member Functions

static bool classof (const TypeSummaryImpl *S)
 

Private Attributes

std::unique_ptr< llvm::MemoryBuffer > m_bytecode
 

Additional Inherited Members

- Public Types inherited from lldb_private::TypeSummaryImpl
enum class  Kind {
  eSummaryString , eScript , eBytecode , eCallback ,
  eInternal
}
 
typedef std::shared_ptr< TypeSummaryImplSharedPointer
 
- Protected Member Functions inherited from lldb_private::TypeSummaryImpl
 TypeSummaryImpl (Kind kind, const TypeSummaryImpl::Flags &flags)
 
- Protected Attributes inherited from lldb_private::TypeSummaryImpl
uint32_t m_my_revision = 0
 
Flags m_flags
 

Detailed Description

A summary formatter that is defined in LLDB formmater bytecode.

Definition at line 418 of file TypeSummary.h.

Constructor & Destructor Documentation

◆ BytecodeSummaryFormat()

BytecodeSummaryFormat::BytecodeSummaryFormat ( const TypeSummaryImpl::Flags flags,
std::unique_ptr< llvm::MemoryBuffer >  bytecode 
)

Definition at line 234 of file TypeSummary.cpp.

Member Function Documentation

◆ classof()

static bool lldb_private::BytecodeSummaryFormat::classof ( const TypeSummaryImpl S)
inlinestatic

◆ FormatObject()

bool BytecodeSummaryFormat::FormatObject ( ValueObject valobj,
std::string &  dest,
const TypeSummaryOptions options 
)
overridevirtual

◆ GetDescription()

std::string BytecodeSummaryFormat::GetDescription ( )
overridevirtual

◆ GetName()

std::string BytecodeSummaryFormat::GetName ( )
overridevirtual

Get the name of the Type Summary Provider, either a C++ class, a summary string, or a script function name.

Implements lldb_private::TypeSummaryImpl.

Definition at line 301 of file TypeSummary.cpp.

Member Data Documentation

◆ m_bytecode

std::unique_ptr<llvm::MemoryBuffer> lldb_private::BytecodeSummaryFormat::m_bytecode
private

Definition at line 419 of file TypeSummary.h.

Referenced by FormatObject().


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