LLDB  mainline
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
lldb_private::ScriptSummaryFormat Struct Reference

#include <TypeSummary.h>

Inheritance diagram for lldb_private::ScriptSummaryFormat:
Inheritance graph
Collaboration diagram for lldb_private::ScriptSummaryFormat:
Collaboration graph

Public Types

typedef std::shared_ptr< ScriptSummaryFormatSharedPointer
- Public Types inherited from lldb_private::TypeSummaryImpl
enum  Kind { Kind::eSummaryString, Kind::eScript, Kind::eCallback, Kind::eInternal }
typedef std::shared_ptr< TypeSummaryImplSharedPointer

Public Member Functions

 ScriptSummaryFormat (const TypeSummaryImpl::Flags &flags, const char *function_name, const char *python_script=nullptr)
 ~ScriptSummaryFormat () override=default
const char * GetFunctionName () const
const char * GetPythonScript () const
void SetFunctionName (const char *function_name)
void SetPythonScript (const char *script)
bool FormatObject (ValueObject *valobj, std::string &dest, const TypeSummaryOptions &options) override
std::string GetDescription () override
- 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)
uint32_tGetRevision ()

Static Public Member Functions

static bool classof (const TypeSummaryImpl *S)

Public Attributes

std::string m_function_name
std::string m_python_script
StructuredData::ObjectSP m_script_function_sp

Private Member Functions


Additional Inherited Members

- 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
Flags m_flags

Detailed Description

Definition at line 348 of file TypeSummary.h.

Member Typedef Documentation

◆ SharedPointer

Definition at line 387 of file TypeSummary.h.

Constructor & Destructor Documentation

◆ ScriptSummaryFormat()

ScriptSummaryFormat::ScriptSummaryFormat ( const TypeSummaryImpl::Flags flags,
const char *  function_name,
const char *  python_script = nullptr 

Definition at line 146 of file TypeSummary.cpp.

References m_function_name, and m_python_script.

◆ ~ScriptSummaryFormat()

lldb_private::ScriptSummaryFormat::~ScriptSummaryFormat ( )

Member Function Documentation

◆ classof()

static bool lldb_private::ScriptSummaryFormat::classof ( const TypeSummaryImpl S)

Definition at line 383 of file TypeSummary.h.

References lldb_private::TypeSummaryImpl::GetKind().


lldb_private::ScriptSummaryFormat::DISALLOW_COPY_AND_ASSIGN ( ScriptSummaryFormat  )

◆ FormatObject()

bool ScriptSummaryFormat::FormatObject ( ValueObject valobj,
std::string &  dest,
const TypeSummaryOptions options 

◆ GetDescription()

std::string ScriptSummaryFormat::GetDescription ( )

◆ GetFunctionName()

const char* lldb_private::ScriptSummaryFormat::GetFunctionName ( ) const

Definition at line 359 of file TypeSummary.h.

◆ GetPythonScript()

const char* lldb_private::ScriptSummaryFormat::GetPythonScript ( ) const

Definition at line 361 of file TypeSummary.h.

◆ SetFunctionName()

void lldb_private::ScriptSummaryFormat::SetFunctionName ( const char *  function_name)

Definition at line 363 of file TypeSummary.h.

◆ SetPythonScript()

void lldb_private::ScriptSummaryFormat::SetPythonScript ( const char *  script)

Definition at line 371 of file TypeSummary.h.

Member Data Documentation

◆ m_function_name

std::string lldb_private::ScriptSummaryFormat::m_function_name

Definition at line 349 of file TypeSummary.h.

Referenced by FormatObject(), GetDescription(), and ScriptSummaryFormat().

◆ m_python_script

std::string lldb_private::ScriptSummaryFormat::m_python_script

Definition at line 350 of file TypeSummary.h.

Referenced by GetDescription(), and ScriptSummaryFormat().

◆ m_script_function_sp

StructuredData::ObjectSP lldb_private::ScriptSummaryFormat::m_script_function_sp

Definition at line 351 of file TypeSummary.h.

Referenced by FormatObject().

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