LLDB mainline
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
lldb::SBType Class Reference

#include <SBType.h>

Public Member Functions

 SBType ()
 
 SBType (const lldb::SBType &rhs)
 
 ~SBType ()
 
 operator bool () const
 
bool IsValid () const
 
uint64_t GetByteSize ()
 
uint64_t GetByteAlign ()
 
bool IsPointerType ()
 
bool IsReferenceType ()
 
bool IsFunctionType ()
 
bool IsPolymorphicClass ()
 
bool IsArrayType ()
 
bool IsVectorType ()
 
bool IsTypedefType ()
 
bool IsAnonymousType ()
 
bool IsScopedEnumerationType ()
 
bool IsAggregateType ()
 
lldb::SBType GetPointerType ()
 
lldb::SBType GetPointeeType ()
 
lldb::SBType GetReferenceType ()
 
lldb::SBType GetTypedefedType ()
 
lldb::SBType GetDereferencedType ()
 
lldb::SBType GetUnqualifiedType ()
 
lldb::SBType GetArrayElementType ()
 
lldb::SBType GetArrayType (uint64_t size)
 
lldb::SBType GetVectorElementType ()
 
lldb::SBType GetCanonicalType ()
 
lldb::SBType GetEnumerationIntegerType ()
 
lldb::BasicType GetBasicType ()
 
lldb::SBType GetBasicType (lldb::BasicType type)
 
uint32_t GetNumberOfFields ()
 
uint32_t GetNumberOfDirectBaseClasses ()
 
uint32_t GetNumberOfVirtualBaseClasses ()
 
lldb::SBTypeMember GetFieldAtIndex (uint32_t idx)
 
lldb::SBTypeMember GetDirectBaseClassAtIndex (uint32_t idx)
 
lldb::SBTypeMember GetVirtualBaseClassAtIndex (uint32_t idx)
 
lldb::SBTypeStaticField GetStaticFieldWithName (const char *name)
 
lldb::SBTypeEnumMemberList GetEnumMembers ()
 
uint32_t GetNumberOfTemplateArguments ()
 
lldb::SBType GetTemplateArgumentType (uint32_t idx)
 
lldb::TemplateArgumentKind GetTemplateArgumentKind (uint32_t idx)
 Return the TemplateArgumentKind of the template argument at index idx.
 
lldb::SBType GetFunctionReturnType ()
 
lldb::SBTypeList GetFunctionArgumentTypes ()
 
uint32_t GetNumberOfMemberFunctions ()
 
lldb::SBTypeMemberFunction GetMemberFunctionAtIndex (uint32_t idx)
 
lldb::SBModule GetModule ()
 
const char * GetName ()
 
const char * GetDisplayTypeName ()
 
lldb::TypeClass GetTypeClass ()
 
bool IsTypeComplete ()
 
uint32_t GetTypeFlags ()
 
bool GetDescription (lldb::SBStream &description, lldb::DescriptionLevel description_level)
 
lldb::SBType FindDirectNestedType (const char *name)
 
lldb::SBTypeoperator= (const lldb::SBType &rhs)
 
bool operator== (lldb::SBType &rhs)
 
bool operator!= (lldb::SBType &rhs)
 

Protected Member Functions

lldb_private::TypeImplref ()
 
const lldb_private::TypeImplref () const
 
lldb::TypeImplSP GetSP ()
 
void SetSP (const lldb::TypeImplSP &type_impl_sp)
 
 SBType (const lldb_private::CompilerType &)
 
 SBType (const lldb::TypeSP &)
 
 SBType (const lldb::TypeImplSP &)
 

Protected Attributes

lldb::TypeImplSP m_opaque_sp
 

Friends

class SBFunction
 
class SBModule
 
class SBTarget
 
class SBTypeEnumMember
 
class SBTypeEnumMemberList
 
class SBTypeNameSpecifier
 
class SBTypeMember
 
class SBTypeMemberFunction
 
class SBTypeStaticField
 
class SBTypeList
 
class SBValue
 
class SBWatchpoint
 
class lldb_private::python::SWIGBridge
 

Detailed Description

Definition at line 139 of file SBType.h.

Constructor & Destructor Documentation

◆ SBType() [1/5]

SBType::SBType ( )

◆ SBType() [2/5]

SBType::SBType ( const lldb::SBType rhs)

Definition at line 46 of file SBType.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ ~SBType()

SBType::~SBType ( )
default

◆ SBType() [3/5]

SBType::SBType ( const lldb_private::CompilerType type)
protected

Definition at line 38 of file SBType.cpp.

◆ SBType() [4/5]

SBType::SBType ( const lldb::TypeSP type_sp)
protected

Definition at line 40 of file SBType.cpp.

◆ SBType() [5/5]

SBType::SBType ( const lldb::TypeImplSP type_impl_sp)
protected

Definition at line 43 of file SBType.cpp.

Member Function Documentation

◆ FindDirectNestedType()

SBType SBType::FindDirectNestedType ( const char *  name)

Definition at line 690 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetArrayElementType()

SBType SBType::GetArrayElementType ( )

Definition at line 222 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetArrayType()

SBType SBType::GetArrayType ( uint64_t  size)

Definition at line 231 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetBasicType() [1/2]

lldb::BasicType SBType::GetBasicType ( )

Definition at line 445 of file SBType.cpp.

References lldb::eBasicTypeInvalid, IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetBasicType() [2/2]

SBType SBType::GetBasicType ( lldb::BasicType  type)

Definition at line 453 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetByteAlign()

uint64_t SBType::GetByteAlign ( )

Definition at line 136 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetByteSize()

uint64_t SBType::GetByteSize ( )

Definition at line 126 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetCanonicalType()

lldb::SBType SBType::GetCanonicalType ( )

Definition at line 427 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetDereferencedType()

SBType SBType::GetDereferencedType ( )

Definition at line 214 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetDescription()

bool SBType::GetDescription ( lldb::SBStream description,
lldb::DescriptionLevel  description_level 
)

◆ GetDirectBaseClassAtIndex()

SBTypeMember SBType::GetDirectBaseClassAtIndex ( uint32_t  idx)

◆ GetDisplayTypeName()

const char * SBType::GetDisplayTypeName ( )

Definition at line 630 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetEnumerationIntegerType()

SBType SBType::GetEnumerationIntegerType ( )

Definition at line 435 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetEnumMembers()

SBTypeEnumMemberList SBType::GetEnumMembers ( )

◆ GetFieldAtIndex()

SBTypeMember SBType::GetFieldAtIndex ( uint32_t  idx)

◆ GetFunctionArgumentTypes()

lldb::SBTypeList SBType::GetFunctionArgumentTypes ( )

◆ GetFunctionReturnType()

lldb::SBType SBType::GetFunctionReturnType ( )

◆ GetMemberFunctionAtIndex()

lldb::SBTypeMemberFunction SBType::GetMemberFunctionAtIndex ( uint32_t  idx)

◆ GetModule()

lldb::SBModule SBType::GetModule ( )

Definition at line 611 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBModule::SetSP().

◆ GetName()

const char * SBType::GetName ( )

Definition at line 622 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetNumberOfDirectBaseClasses()

uint32_t SBType::GetNumberOfDirectBaseClasses ( )

Definition at line 462 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetNumberOfFields()

uint32_t SBType::GetNumberOfFields ( )

Definition at line 478 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetNumberOfMemberFunctions()

uint32_t SBType::GetNumberOfMemberFunctions ( )

Definition at line 327 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetNumberOfTemplateArguments()

uint32_t SBType::GetNumberOfTemplateArguments ( )

Definition at line 646 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetNumberOfVirtualBaseClasses()

uint32_t SBType::GetNumberOfVirtualBaseClasses ( )

Definition at line 470 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetPointeeType()

SBType SBType::GetPointeeType ( )

Definition at line 190 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetPointerType()

SBType SBType::GetPointerType ( )

Definition at line 181 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetReferenceType()

SBType SBType::GetReferenceType ( )

Definition at line 198 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetSP()

lldb::TypeImplSP SBType::GetSP ( )
protected

◆ GetStaticFieldWithName()

SBTypeStaticField SBType::GetStaticFieldWithName ( const char *  name)

Definition at line 532 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBTypeStaticField.

◆ GetTemplateArgumentKind()

lldb::TemplateArgumentKind SBType::GetTemplateArgumentKind ( uint32_t  idx)

Return the TemplateArgumentKind of the template argument at index idx.

Variadic argument packs are automatically expanded.

Definition at line 681 of file SBType.cpp.

References lldb::eTemplateArgumentKindNull, IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

Referenced by GetTemplateArgumentType().

◆ GetTemplateArgumentType()

lldb::SBType SBType::GetTemplateArgumentType ( uint32_t  idx)

◆ GetTypeClass()

lldb::TypeClass SBType::GetTypeClass ( )

Definition at line 638 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetTypedefedType()

SBType SBType::GetTypedefedType ( )

Definition at line 206 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetTypeFlags()

uint32_t SBType::GetTypeFlags ( )

Definition at line 603 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetUnqualifiedType()

lldb::SBType SBType::GetUnqualifiedType ( )

Definition at line 419 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBType().

◆ GetVectorElementType()

SBType SBType::GetVectorElementType ( )

Definition at line 240 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SetSP().

◆ GetVirtualBaseClassAtIndex()

SBTypeMember SBType::GetVirtualBaseClassAtIndex ( uint32_t  idx)

◆ IsAggregateType()

bool SBType::IsAggregateType ( )

Definition at line 293 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ IsAnonymousType()

bool SBType::IsAnonymousType ( )

Definition at line 277 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ IsArrayType()

bool SBType::IsArrayType ( )

Definition at line 156 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ IsFunctionType()

bool SBType::IsFunctionType ( )

Definition at line 253 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ IsPointerType()

bool SBType::IsPointerType ( )

Definition at line 148 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ IsPolymorphicClass()

bool SBType::IsPolymorphicClass ( )

Definition at line 261 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ IsReferenceType()

bool SBType::IsReferenceType ( )

Definition at line 173 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ IsScopedEnumerationType()

bool SBType::IsScopedEnumerationType ( )

Definition at line 285 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ IsTypeComplete()

bool SBType::IsTypeComplete ( )

◆ IsTypedefType()

bool SBType::IsTypedefType ( )

Definition at line 269 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ IsValid()

bool SBType::IsValid ( ) const

◆ IsVectorType()

bool SBType::IsVectorType ( )

Definition at line 165 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ operator bool()

SBType::operator bool ( ) const
explicit

Definition at line 117 of file SBType.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator!=()

bool SBType::operator!= ( lldb::SBType rhs)

Definition at line 70 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ operator=()

SBType & SBType::operator= ( const lldb::SBType rhs)

Definition at line 88 of file SBType.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ operator==()

bool SBType::operator== ( lldb::SBType rhs)

Definition at line 58 of file SBType.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ ref() [1/2]

TypeImpl & SBType::ref ( )
protected

Definition at line 99 of file SBType.cpp.

References m_opaque_sp.

Referenced by lldb::SBFunction::GetType().

◆ ref() [2/2]

const TypeImpl & SBType::ref ( ) const
protected

Definition at line 105 of file SBType.cpp.

References m_opaque_sp.

◆ SetSP()

void SBType::SetSP ( const lldb::TypeImplSP type_impl_sp)
protected

Friends And Related Function Documentation

◆ lldb_private::python::SWIGBridge

friend class lldb_private::python::SWIGBridge
friend

Definition at line 283 of file SBType.h.

◆ SBFunction

friend class SBFunction
friend

Definition at line 270 of file SBType.h.

◆ SBModule

friend class SBModule
friend

Definition at line 271 of file SBType.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 272 of file SBType.h.

◆ SBTypeEnumMember

friend class SBTypeEnumMember
friend

Definition at line 273 of file SBType.h.

◆ SBTypeEnumMemberList

friend class SBTypeEnumMemberList
friend

Definition at line 274 of file SBType.h.

◆ SBTypeList

friend class SBTypeList
friend

Definition at line 279 of file SBType.h.

◆ SBTypeMember

friend class SBTypeMember
friend

Definition at line 276 of file SBType.h.

◆ SBTypeMemberFunction

friend class SBTypeMemberFunction
friend

Definition at line 277 of file SBType.h.

◆ SBTypeNameSpecifier

friend class SBTypeNameSpecifier
friend

Definition at line 275 of file SBType.h.

◆ SBTypeStaticField

friend class SBTypeStaticField
friend

Definition at line 278 of file SBType.h.

Referenced by GetStaticFieldWithName().

◆ SBValue

friend class SBValue
friend

Definition at line 280 of file SBType.h.

◆ SBWatchpoint

friend class SBWatchpoint
friend

Definition at line 281 of file SBType.h.

Member Data Documentation

◆ m_opaque_sp

lldb::TypeImplSP lldb::SBType::m_opaque_sp
protected

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