Interface TraceBaseDefinedUnitsView<T extends TraceCodeUnit>

Type Parameters:
T - the type of units in the view
All Superinterfaces:
TraceBaseCodeUnitsView<T>
All Known Subinterfaces:
InternalTraceBaseDefinedUnitsView<T>, InternalTraceDefinedDataView, TraceDefinedDataView, TraceDefinedUnitsView, TraceInstructionsView
All Known Implementing Classes:
DBTraceDefinedDataMemoryView, DBTraceDefinedDataView, DBTraceDefinedUnitsMemoryView, DBTraceDefinedUnitsView, DBTraceInstructionsMemoryView, DBTraceInstructionsView

public interface TraceBaseDefinedUnitsView<T extends TraceCodeUnit> extends TraceBaseCodeUnitsView<T>
A TraceBaseCodeUnitsView restricted (at least) to defined units
  • Method Details

    • clear

      void clear(Lifespan span, AddressRange range, boolean clearContext, TaskMonitor monitor) throws CancelledException
      Clear the units contained within the given span and address range.

      Any units alive before the given span are truncated instead of deleted. That is, their end snaps are reduced such that they no longer intersect the given span. Note that the same is not true of a unit's start snap. If the start snap is contained in the span, the unit is deleted, even if its end snap is outside the span.

      Parameters:
      span - the span to clear
      range - the range to clear
      clearContext - true to clear the register context as well
      monitor - a monitor for progress and cancellation
      Throws:
      CancelledException - if the clear is cancelled
    • clear

      default void clear(Lifespan span, Register register, TaskMonitor monitor) throws CancelledException
      Clear the units contained within the given span and register

      Any units alive before the given span are truncated instead of deleted.

      Parameters:
      span - the span to clear
      register - the register
      monitor - a monitor for progress and cancellation
      Throws:
      CancelledException - if the clear is cancelled
    • clear

      void clear(TracePlatform platform, Lifespan span, Register register, TaskMonitor monitor) throws CancelledException
      Clear the units contained within the given span and platform register

      Any units alive before the given span are truncated instead of deleted.

      Parameters:
      platform - the platform whose language defines the register
      span - the span to clear
      register - the register
      monitor - a monitor for progress and cancellation
      Throws:
      CancelledException - if the clear is cancelled