Package lldb :: Class SBTypeList
[hide private]
[frames] | no frames]

Class SBTypeList

source code



Represents a list of SBTypes.  The FindTypes() method of SBTarget/SBModule
returns a SBTypeList.

SBTypeList supports SBType iteration. 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

...

Instance Methods [hide private]
 
__repr__(self) source code
 
__init__(self)
__init__(lldb::SBTypeList self) -> SBTypeList
source code
 
IsValid(self)
IsValid(SBTypeList self) -> bool
source code
 
__nonzero__(self) source code
 
__bool__(self) source code
 
Append(self, *args)
Append(SBTypeList self, SBType type)
source code
 
GetTypeAtIndex(self, *args)
GetTypeAtIndex(SBTypeList self, uint32_t index) -> SBType
source code
 
GetSize(self)
GetSize(SBTypeList self) -> uint32_t
source code
 
__iter__(self)
Iterate over all types in a lldb.SBTypeList object.
source code
 
__len__(self)
Return the number of types in a lldb.SBTypeList object.
source code
Class Variables [hide private]
  __swig_setmethods__ = {}
  __setattr__ = lambda self, name, value:
  __swig_getmethods__ = {}
  __getattr__ = lambda self, name:
  __swig_destroy__ = _lldb.delete_SBTypeList
  __del__ = lambda self: