Interface for notifying observers when the Section is modified.
More...
#include <Section.hpp>
Interface for notifying observers when the Section is modified.
◆ ~SectionObserver()
virtual gtirb::SectionObserver::~SectionObserver |
( |
| ) |
|
|
virtualdefault |
◆ addCodeBlocks()
Notify the parent when new CodeBlocks are added to the Section.
Called after the Section updates its internal state.
- Parameters
-
S | the Section to which 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 Section.
Called after the Section updates its internal state.
- Parameters
-
S | the Section to which DataBlocks were added. |
Blocks | a range containing the new DataBlocks. |
- Returns
- indication of whether the observer accepts the change.
◆ changeExtent()
Notify parent when the range of addresses in the Section changes.
Called before the Section's extent changes. This method should invoke the callback with S
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 Section updates its internal state.
- Parameters
-
S | the Section 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 DataBlocks change.
Called after the Section updates its internal state.
- Parameters
-
S | the Section containing the DataBlocks. |
Blocks | a range containing the DataBlocks that moved. |
- Returns
- indication of whether the observer accepts the change.
◆ nameChange()
virtual ChangeStatus gtirb::SectionObserver::nameChange |
( |
Section * |
S, |
|
|
const std::string & |
OldName, |
|
|
const std::string & |
NewName |
|
) |
| |
|
pure virtual |
Notify the parent when this Section's name changes.
Called after the Section updates its internal state.
- Parameters
-
S | the Section whose name changed. |
OldName | the Section's previous name. |
NewName | the new name of this section. |
- Returns
- indication of whether the observer accepts the change.
◆ removeCodeBlocks()
Notify the parent when CodeBlocks are removed from the Section.
Called before the Section updates its internal state.
- Parameters
-
S | the Section from which 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 Section.
Called before the Section updates its internal state.
- Parameters
-
S | the Section from which 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: