SBTypeList¶
-
class
lldb.SBTypeList¶ Represents a list of
SBTypes.The FindTypes() method of
SBTarget/SBModulereturns a SBTypeList.SBTypeList supports
SBTypeiteration. For example,// main.cpp: class Task { public: int id; Task *next; Task(int i, Task *n): id(i), next(n) {} };
# find_type.py: # Get the type 'Task'. type_list = target.FindTypes('Task') self.assertTrue(len(type_list) == 1) # To illustrate the SBType iteration. for type in type_list: # do something with type
Methods Summary
Append(SBTypeList self, SBType type)GetSize(SBTypeList self)GetTypeAtIndex(SBTypeList self, uint32_t index)IsValid(SBTypeList self)Methods Documentation
-
Append(SBTypeList self, SBType type)¶
-
GetSize(SBTypeList self) → uint32_t¶
-
GetTypeAtIndex(SBTypeList self, uint32_t index) → SBType¶
-
IsValid(SBTypeList self) → bool¶
-
__iter__()¶ Iterate over all types in a lldb.SBTypeList object.
-
__len__()¶ Return the number of types in a lldb.SBTypeList object.
-