Interface for notifying observers when the ByteInterval is modified.
More...
#include <ByteInterval.hpp>
Interface for notifying observers when the ByteInterval is modified.
◆ ~ByteIntervalObserver()
virtual gtirb::ByteIntervalObserver::~ByteIntervalObserver |
( |
| ) |
|
|
virtualdefault |
◆ addCodeBlocks()
Notify the parent when new CodeBlocks are added to the interval.
Called after the ByteInterval updates its internal state.
- Parameters
-
BI | the ByteInterval to which the CodeBlocks were added. |
Blocks | a range containing the new CodeBlocks. |
- Returns
- indication of whether the observer accepts the change.
◆ addDataBlocks()
Notify the parent when new DataBlocks are added to the interval.
Called after the ByteInterval updates its internal state.
- Parameters
-
BI | the ByteInterval to which the DataBlocks were added. |
Blocks | a range containing the new DataBlocks. |
- Returns
- indication of whether the observer accepts the change.
◆ changeExtent()
Notify the parent when the range of addresses in the interval changes.
Called before the ByteInterval's extent changes. This method should invoke the callback with BI
to update its extent.
- Parameters
-
- Returns
- indication of whether the observer accepts the change.
◆ moveCodeBlocks()
Notify the parent when the addresses of existing CodeBlocks change.
Called after the ByteInterval updates its internal state.
- Parameters
-
BI | the ByteInterval containing the CodeBlocks. |
Blocks | a range containing the CodeBlocks that moved. |
- Returns
- indication of whether the observer accepts the change.
◆ moveDataBlocks()
Notify the parent when the addresses of existing CodeBlocks change.
Called after the ByteInterval updates its internal state.
- Parameters
-
BI | the ByteInterval containing the DataBlocks. |
Blocks | a range containing the DataBlocks that moved. |
- Returns
- indication of whether the observer accepts the change.
◆ removeCodeBlocks()
Notify the parent when CodeBlocks are removed from the interval.
Called before the ByteInterval updates its internal state.
- Parameters
-
BI | the ByteInterval from which the CodeBlocks will be removed. |
Blocks | a range containing the CodeBlocks to remove. |
- Returns
- indication of whether the observer accepts the change.
◆ removeDataBlocks()
Notify the parent when DataBlocks are removed from the interval.
Called before the ByteInterval updates its internal state.
- Parameters
-
BI | the ByteInterval from which the DataBlocks will be removed. |
Blocks | a range containing the DataBlocks to remove. |
- Returns
- indication of whether the observer accepts the change.
The documentation for this class was generated from the following file: