xref: /llvm-project/lldb/bindings/interface/SBProcessInfoListExtensions.i (revision 8f378ff7a0a36137619a446b0bb13b8bc0ef6721)
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