LLDB mainline
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
lldb_private::TypeSummaryImpl Class Referenceabstract

#include <TypeSummary.h>

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

Classes

class  Flags
 

Public Types

enum class  Kind {
  eSummaryString , eScript , eBytecode , eCallback ,
  eInternal
}
 
typedef std::shared_ptr< TypeSummaryImplSharedPointer
 

Public Member Functions

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 ()
 

Protected Member Functions

 TypeSummaryImpl (Kind kind, const TypeSummaryImpl::Flags &flags)
 

Protected Attributes

uint32_t m_my_revision = 0
 
Flags m_flags
 

Private Member Functions

 TypeSummaryImpl (const TypeSummaryImpl &)=delete
 
const TypeSummaryImploperator= (const TypeSummaryImpl &)=delete
 

Private Attributes

Kind m_kind
 

Detailed Description

Definition at line 49 of file TypeSummary.h.

Member Typedef Documentation

◆ SharedPointer

Definition at line 275 of file TypeSummary.h.

Member Enumeration Documentation

◆ Kind

Enumerator
eSummaryString 
eScript 
eBytecode 
eCallback 
eInternal 

Definition at line 51 of file TypeSummary.h.

Constructor & Destructor Documentation

◆ ~TypeSummaryImpl()

virtual lldb_private::TypeSummaryImpl::~TypeSummaryImpl ( )
virtualdefault

◆ TypeSummaryImpl() [1/2]

TypeSummaryImpl::TypeSummaryImpl ( Kind  kind,
const TypeSummaryImpl::Flags flags 
)
protected

Definition at line 46 of file TypeSummary.cpp.

◆ TypeSummaryImpl() [2/2]

lldb_private::TypeSummaryImpl::TypeSummaryImpl ( const TypeSummaryImpl )
privatedelete

Member Function Documentation

◆ Cascades()

bool lldb_private::TypeSummaryImpl::Cascades ( ) const
inline

◆ DoesPrintChildren()

virtual bool lldb_private::TypeSummaryImpl::DoesPrintChildren ( ValueObject valobj) const
inlinevirtual

◆ DoesPrintEmptyAggregates()

virtual bool lldb_private::TypeSummaryImpl::DoesPrintEmptyAggregates ( ) const
inlinevirtual

◆ DoesPrintValue()

virtual bool lldb_private::TypeSummaryImpl::DoesPrintValue ( ValueObject valobj) const
inlinevirtual

◆ FormatObject()

virtual bool lldb_private::TypeSummaryImpl::FormatObject ( ValueObject valobj,
std::string &  dest,
const TypeSummaryOptions options 
)
pure virtual

◆ GetDescription()

virtual std::string lldb_private::TypeSummaryImpl::GetDescription ( )
pure virtual

◆ GetKind()

Kind lldb_private::TypeSummaryImpl::GetKind ( ) const
inline

◆ GetName()

virtual std::string lldb_private::TypeSummaryImpl::GetName ( )
pure virtual

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

Implemented in lldb_private::StringSummaryFormat, lldb_private::CXXFunctionSummaryFormat, lldb_private::ScriptSummaryFormat, and lldb_private::BytecodeSummaryFormat.

Referenced by lldb_private::SummaryStatisticsCache::GetSummaryStatisticsForProvider().

◆ GetOptions()

uint32_t lldb_private::TypeSummaryImpl::GetOptions ( )
inline

Definition at line 252 of file TypeSummary.h.

References lldb_private::TypeSummaryImpl::Flags::GetValue(), and m_flags.

◆ GetRevision()

uint32_t & lldb_private::TypeSummaryImpl::GetRevision ( )
inline

Definition at line 273 of file TypeSummary.h.

References m_my_revision.

◆ GetSummaryKindName()

std::string TypeSummaryImpl::GetSummaryKindName ( )
virtual

Get the name of the kind of Summary Provider, either c++, summary string, script or python.

Definition at line 49 of file TypeSummary.cpp.

References eBytecode, eCallback, eInternal, eScript, eSummaryString, and m_kind.

Referenced by lldb_private::SummaryStatisticsCache::GetSummaryStatisticsForProvider().

◆ HideNames()

virtual bool lldb_private::TypeSummaryImpl::HideNames ( ValueObject valobj) const
inlinevirtual

◆ IsOneLiner()

bool lldb_private::TypeSummaryImpl::IsOneLiner ( ) const
inline

◆ NonCacheable()

bool lldb_private::TypeSummaryImpl::NonCacheable ( ) const
inline

◆ operator=()

const TypeSummaryImpl & lldb_private::TypeSummaryImpl::operator= ( const TypeSummaryImpl )
privatedelete

◆ SetCascades()

void lldb_private::TypeSummaryImpl::SetCascades ( bool  value)
inline

Definition at line 232 of file TypeSummary.h.

References m_flags, and lldb_private::TypeSummaryImpl::Flags::SetCascades().

◆ SetDoesPrintChildren()

virtual void lldb_private::TypeSummaryImpl::SetDoesPrintChildren ( bool  value)
inlinevirtual

◆ SetDoesPrintValue()

virtual void lldb_private::TypeSummaryImpl::SetDoesPrintValue ( bool  value)
inlinevirtual

◆ SetHideNames()

virtual void lldb_private::TypeSummaryImpl::SetHideNames ( bool  value)
inlinevirtual

◆ SetIsOneLiner()

void lldb_private::TypeSummaryImpl::SetIsOneLiner ( bool  value)
inline

◆ SetNonCacheable()

virtual void lldb_private::TypeSummaryImpl::SetNonCacheable ( bool  value)
inlinevirtual

◆ SetOptions()

void lldb_private::TypeSummaryImpl::SetOptions ( uint32_t  value)
inline

Definition at line 254 of file TypeSummary.h.

References m_flags, and lldb_private::TypeSummaryImpl::Flags::SetValue().

◆ SetSkipsPointers()

void lldb_private::TypeSummaryImpl::SetSkipsPointers ( bool  value)
inline

◆ SetSkipsReferences()

void lldb_private::TypeSummaryImpl::SetSkipsReferences ( bool  value)
inline

◆ SkipsPointers()

bool lldb_private::TypeSummaryImpl::SkipsPointers ( ) const
inline

◆ SkipsReferences()

bool lldb_private::TypeSummaryImpl::SkipsReferences ( ) const
inline

Member Data Documentation

◆ m_flags

Flags lldb_private::TypeSummaryImpl::m_flags
protected

◆ m_kind

Kind lldb_private::TypeSummaryImpl::m_kind
private

Definition at line 284 of file TypeSummary.h.

Referenced by GetKind(), and GetSummaryKindName().

◆ m_my_revision

uint32_t lldb_private::TypeSummaryImpl::m_my_revision = 0
protected

Definition at line 278 of file TypeSummary.h.

Referenced by GetRevision().


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