SBTypeList#
- class lldb.SBTypeList(*args)#
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#
- IsValid(SBTypeList self) bool#