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

#include <SBType.h>

Collaboration diagram for lldb::SBType:
Collaboration graph
[legend]

Public Member Functions

 SBType ()
 
 SBType (const lldb::SBType &rhs)
 
 ~SBType ()
 
 operator bool () const
 
bool IsValid () const
 
uint64_t GetByteSize ()
 
bool IsPointerType ()
 
bool IsReferenceType ()
 
bool IsFunctionType ()
 
bool IsPolymorphicClass ()
 
bool IsArrayType ()
 
bool IsVectorType ()
 
bool IsTypedefType ()
 
bool IsAnonymousType ()
 
bool IsScopedEnumerationType ()
 
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::SBTypeEnumMemberList GetEnumMembers ()
 
uint32_t GetNumberOfTemplateArguments ()
 
lldb::SBType GetTemplateArgumentType (uint32_t idx)
 
lldb::TemplateArgumentKind GetTemplateArgumentKind (uint32_t 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::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 SBTypeList
 
class SBValue
 

Detailed Description

Definition at line 104 of file SBType.h.

Constructor & Destructor Documentation

◆ SBType() [1/5]

SBType::SBType ( )

◆ SBType() [2/5]

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

Definition at line 41 of file SBType.cpp.

References LLDB_RECORD_CONSTRUCTOR, and m_opaque_sp.

◆ ~SBType()

SBType::~SBType ( )
default

◆ SBType() [3/5]

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

Definition at line 31 of file SBType.cpp.

◆ SBType() [4/5]

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

Definition at line 35 of file SBType.cpp.

◆ SBType() [5/5]

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

Definition at line 38 of file SBType.cpp.

Member Function Documentation

◆ GetArrayElementType()

SBType SBType::GetArrayElementType ( )

◆ GetArrayType()

SBType SBType::GetArrayType ( uint64_t  size)

Definition at line 220 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, m_opaque_sp, and SBType().

◆ GetBasicType() [1/2]

lldb::BasicType SBType::GetBasicType ( )

Definition at line 357 of file SBType.cpp.

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

Referenced by GetBasicType().

◆ GetBasicType() [2/2]

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

◆ GetByteSize()

uint64_t SBType::GetByteSize ( )

Definition at line 122 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetCanonicalType()

lldb::SBType SBType::GetCanonicalType ( )

◆ GetDereferencedType()

SBType SBType::GetDereferencedType ( )

◆ 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 534 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetEnumerationIntegerType()

SBType SBType::GetEnumerationIntegerType ( )

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

◆ GetName()

const char * SBType::GetName ( )

Definition at line 526 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetNumberOfDirectBaseClasses()

uint32_t SBType::GetNumberOfDirectBaseClasses ( )

Definition at line 375 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetNumberOfFields()

uint32_t SBType::GetNumberOfFields ( )

Definition at line 391 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetNumberOfMemberFunctions()

uint32_t SBType::GetNumberOfMemberFunctions ( )

Definition at line 309 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetNumberOfTemplateArguments()

uint32_t SBType::GetNumberOfTemplateArguments ( )

Definition at line 550 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetNumberOfVirtualBaseClasses()

uint32_t SBType::GetNumberOfVirtualBaseClasses ( )

Definition at line 383 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetPointeeType()

SBType SBType::GetPointeeType ( )

◆ GetPointerType()

SBType SBType::GetPointerType ( )

◆ GetReferenceType()

SBType SBType::GetReferenceType ( )

◆ GetSP()

lldb::TypeImplSP SBType::GetSP ( )
protected

◆ GetTemplateArgumentKind()

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

◆ GetTemplateArgumentType()

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

◆ GetTypeClass()

lldb::TypeClass SBType::GetTypeClass ( )

Definition at line 542 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetTypedefedType()

SBType SBType::GetTypedefedType ( )

◆ GetTypeFlags()

uint32_t SBType::GetTypeFlags ( )

Definition at line 507 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetUnqualifiedType()

lldb::SBType SBType::GetUnqualifiedType ( )

◆ GetVectorElementType()

SBType SBType::GetVectorElementType ( )

Definition at line 229 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, LLDB_RECORD_RESULT, m_opaque_sp, and SetSP().

◆ GetVirtualBaseClassAtIndex()

SBTypeMember SBType::GetVirtualBaseClassAtIndex ( uint32_t  idx)

◆ IsAnonymousType()

bool SBType::IsAnonymousType ( )

Definition at line 266 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsArrayType()

bool SBType::IsArrayType ( )

Definition at line 140 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsFunctionType()

bool SBType::IsFunctionType ( )

Definition at line 242 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsPointerType()

bool SBType::IsPointerType ( )

Definition at line 132 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

Referenced by lldb::SBValue::TypeIsPointerType().

◆ IsPolymorphicClass()

bool SBType::IsPolymorphicClass ( )

Definition at line 250 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsReferenceType()

bool SBType::IsReferenceType ( )

Definition at line 157 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsScopedEnumerationType()

bool SBType::IsScopedEnumerationType ( )

Definition at line 274 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsTypeComplete()

bool SBType::IsTypeComplete ( )

Definition at line 499 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsTypedefType()

bool SBType::IsTypedefType ( )

Definition at line 258 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsValid()

bool SBType::IsValid ( ) const

◆ IsVectorType()

bool SBType::IsVectorType ( )

Definition at line 149 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ operator bool()

SBType::operator bool ( ) const
explicit

Definition at line 113 of file SBType.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator!=()

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

Definition at line 65 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD, and m_opaque_sp.

◆ operator=()

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

Definition at line 83 of file SBType.cpp.

References LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and m_opaque_sp.

◆ operator==()

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

Definition at line 53 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD, and m_opaque_sp.

◆ ref() [1/2]

const TypeImpl & SBType::ref ( )
protected

Definition at line 95 of file SBType.cpp.

References m_opaque_sp.

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

◆ ref() [2/2]

const lldb_private::TypeImpl& lldb::SBType::ref ( ) const
protected

◆ SetSP()

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

Friends And Related Function Documentation

◆ SBFunction

friend class SBFunction
friend

Definition at line 225 of file SBType.h.

◆ SBModule

friend class SBModule
friend

Definition at line 226 of file SBType.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 227 of file SBType.h.

◆ SBTypeEnumMember

friend class SBTypeEnumMember
friend

Definition at line 228 of file SBType.h.

◆ SBTypeEnumMemberList

friend class SBTypeEnumMemberList
friend

Definition at line 229 of file SBType.h.

◆ SBTypeList

friend class SBTypeList
friend

Definition at line 233 of file SBType.h.

◆ SBTypeMember

friend class SBTypeMember
friend

Definition at line 231 of file SBType.h.

◆ SBTypeMemberFunction

friend class SBTypeMemberFunction
friend

Definition at line 232 of file SBType.h.

◆ SBTypeNameSpecifier

friend class SBTypeNameSpecifier
friend

Definition at line 230 of file SBType.h.

◆ SBValue

friend class SBValue
friend

Definition at line 234 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: