public CodeUnitIterator getCodeUnits(AddressSetView set, boolean forward) {
		if (set.isEmpty()) {
			return CodeUnitIterator.EMPTY_ITERATOR;
		}
		return new CodeUnitRecordIterator(this, getInstructions(set, forward),
			getDefinedData(set, forward), set, forward);
	}
Returns an iterator over all codeUnits in the given addressSet. The iterator will go from 
the lowest address to the largest or from the largest to the lowest depending on the forward 
parameter.
@param set the memory address set over which code units should be iterated (required)
@param forward determines if the iterator goes from lowest address to highest or the other
way around.
@return code unit iterator
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/CodeManager.java