Package ghidra.util

Class AddressIteratorAdapter

All Implemented Interfaces:
AddressIterator, Iterable<Address>, Iterator<Address>

public class AddressIteratorAdapter extends FlattenedIterator<AddressRange,Address> implements AddressIterator
Convert an AddressRange iterator to an AddressIterator.
  • Constructor Details

    • AddressIteratorAdapter

      public AddressIteratorAdapter(Iterator<AddressRange> outer, boolean forward)
      Construct an AddressIterator over the given address ranges
      Parameters:
      outer - an iterator of address ranges
      forward - true for forward iteration. Otherwise backward iteration. This flag must be consistent with the order of the given outer iterator.
    • AddressIteratorAdapter

      public AddressIteratorAdapter(Iterator<AddressRange> outer, Address start, boolean forward)
      Construct an AddressIterator over the given address ranges, truncating the initial range to the given start
      Parameters:
      outer - the iterator of address ranges, the first of which must contain or come after the given start.
      start - the starting address
      forward - true for forward iteration. Otherwise backward iteration. This flag must be consistent with the order of the given outer iterator.o
  • Method Details