xref: /freebsd-src/contrib/llvm-project/lldb/bindings/interface/SBProcessInfoListExtensions.i (revision 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
1 %extend lldb::SBProcessInfoList {
2 #ifdef SWIGPYTHON
3     %pythoncode%{
4     def __len__(self):
5       '''Return the number of process info in a lldb.SBProcessInfoListExtensions object.'''
6       return self.GetSize()
7 
8     def __iter__(self):
9       '''Iterate over all the process info in a lldb.SBProcessInfoListExtensions object.'''
10       return lldb_iter(self, 'GetSize', 'GetProcessInfoAtIndex')
11     %}
12 #endif
13 }
14