llvm/lldb/bindings/interface/SBMemoryRegionInfoListExtensions.i

%extend lldb::SBMemoryRegionInfoList {
#ifdef SWIGPYTHON
    %pythoncode%{
    def __len__(self):
      '''Return the number of memory region info in a lldb.SBMemoryRegionInfoList object.'''
      return self.GetSize()

    def __iter__(self):
      '''Iterate over all the memory regions in a lldb.SBMemoryRegionInfoList object.'''
      return lldb_iter(self, 'GetSize', 'GetMemoryRegionAtIndex')
    %}
#endif
}