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 ()
 
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::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)
 
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 40 of file SBType.cpp.

References LLDB_RECORD_CONSTRUCTOR, and m_opaque_sp.

◆ ~SBType()

SBType::~SBType ( )

Definition at line 92 of file SBType.cpp.

◆ SBType() [3/5]

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

Definition at line 30 of file SBType.cpp.

◆ SBType() [4/5]

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

Definition at line 34 of file SBType.cpp.

◆ SBType() [5/5]

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

Definition at line 37 of file SBType.cpp.

Member Function Documentation

◆ GetArrayElementType()

SBType SBType::GetArrayElementType ( )

◆ GetArrayType()

SBType SBType::GetArrayType ( uint64_t  size)

Definition at line 219 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 338 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 121 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 504 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

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

◆ GetName()

const char * SBType::GetName ( )

Definition at line 496 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetNumberOfDirectBaseClasses()

uint32_t SBType::GetNumberOfDirectBaseClasses ( )

Definition at line 356 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetNumberOfFields()

uint32_t SBType::GetNumberOfFields ( )

Definition at line 372 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetNumberOfMemberFunctions()

uint32_t SBType::GetNumberOfMemberFunctions ( )

Definition at line 300 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetNumberOfTemplateArguments()

uint32_t SBType::GetNumberOfTemplateArguments ( )

Definition at line 520 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ GetNumberOfVirtualBaseClasses()

uint32_t SBType::GetNumberOfVirtualBaseClasses ( )

Definition at line 364 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 512 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 488 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 228 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 265 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsArrayType()

bool SBType::IsArrayType ( )

Definition at line 139 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsFunctionType()

bool SBType::IsFunctionType ( )

Definition at line 241 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsPointerType()

bool SBType::IsPointerType ( )

Definition at line 131 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 249 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsReferenceType()

bool SBType::IsReferenceType ( )

Definition at line 156 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsTypeComplete()

bool SBType::IsTypeComplete ( )

Definition at line 480 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ IsTypedefType()

bool SBType::IsTypedefType ( )

Definition at line 257 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 148 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 112 of file SBType.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS, and m_opaque_sp.

◆ operator!=()

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

Definition at line 64 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD, and m_opaque_sp.

◆ operator=()

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

Definition at line 82 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 52 of file SBType.cpp.

References IsValid(), LLDB_RECORD_METHOD, and m_opaque_sp.

◆ ref() [1/2]

TypeImpl & SBType::ref ( )
protected

Definition at line 94 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 100 of file SBType.cpp.

References m_opaque_sp.

◆ SetSP()

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

Friends And Related Function Documentation

◆ SBFunction

friend class SBFunction
friend

Definition at line 218 of file SBType.h.

◆ SBModule

friend class SBModule
friend

Definition at line 219 of file SBType.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 220 of file SBType.h.

◆ SBTypeEnumMember

friend class SBTypeEnumMember
friend

Definition at line 221 of file SBType.h.

◆ SBTypeEnumMemberList

friend class SBTypeEnumMemberList
friend

Definition at line 222 of file SBType.h.

◆ SBTypeList

friend class SBTypeList
friend

Definition at line 226 of file SBType.h.

◆ SBTypeMember

friend class SBTypeMember
friend

Definition at line 224 of file SBType.h.

◆ SBTypeMemberFunction

friend class SBTypeMemberFunction
friend

Definition at line 225 of file SBType.h.

◆ SBTypeNameSpecifier

friend class SBTypeNameSpecifier
friend

Definition at line 223 of file SBType.h.

◆ SBValue

friend class SBValue
friend

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