Interface for notifying observers when the Symbol is updated.
More...
#include <Symbol.hpp>
Interface for notifying observers when the Symbol is updated.
◆ ~SymbolObserver()
virtual gtirb::SymbolObserver::~SymbolObserver |
( |
| ) |
|
|
virtualdefault |
◆ nameChange()
virtual ChangeStatus gtirb::SymbolObserver::nameChange |
( |
Symbol * |
S, |
|
|
const std::string & |
OldName, |
|
|
const std::string & |
NewName |
|
) |
| |
|
pure virtual |
Notify parent when the Symbol's name changes.
Called after the Symbol updates its internal state.
- Parameters
-
S | the Symbol whose name changed. |
OldName | the Symbol's previous name. |
NewName | the new name of the Symbol. |
- Returns
- indication of whether the observer accepts the change.
◆ referentChange()
virtual ChangeStatus gtirb::SymbolObserver::referentChange |
( |
Symbol * |
S, |
|
|
std::variant< std::monostate, Addr, Node * > |
OldReferent, |
|
|
std::variant< std::monostate, Addr, Node * > |
NewReferent |
|
) |
| |
|
pure virtual |
Notify parent when the Symbol's referent (Node or Addr) changes.
Called after the Symbol updates its internal state.
- Parameters
-
S | the Symbol whose referent changed. |
OldReferent | the Symbol's previous referent. |
NewReferent | the new value the Symbol refers to. |
- Returns
- indication of whether the observer accepts the change.
The documentation for this class was generated from the following file: