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]
__setattr__(self, name, value) x.__setattr__('name', value) <==> x.name = value | source code
__getattr__(self, name) | source code
__repr__(self) repr(x) | source code
__iter__(self) | source code
__len__(self) | source code
__init__(self) __init__(lldb::SBTypeList self) -> SBTypeList | source code
__nonzero__(self) | source code
IsValid(self) IsValid(SBTypeList self) -> bool | 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
__swig_destroy__(...) delete_SBTypeList(SBTypeList self) |
__del__(self) | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| __swig_setmethods__ = ``{``}``
| __swig_getmethods__ = ``{``}``

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __setattr__(self, name, value) | source code
x.__setattr__('name', value) <==> x.name = value Overrides: object.__setattr__ (inherited documentation)

### __repr__(self) (Representation operator) | source code
repr(x) Overrides: object.__repr__ (inherited documentation)

### __init__(self) (Constructor) | source code
__init__(lldb::SBTypeList self) -> SBTypeList Overrides: object.__init__