Private per-session attachment map and guarded native signal wiring.
More...
|
| struct | Entry |
| | Current membership and its semantic change-comparison caches. More...
|
| |
|
| bool | available () const |
| | Verify that native state remains usable for an ordinary observation.
|
| |
| Entry * | entry (OpenSWMMVisLayer *key) |
| | Resolve one tracked and currently attached native identity.
|
| |
| void | publish (OpenSWMMVisLayer *key, ViewEventKind kind, const QStringList &keys={}) |
| | Send one owning observation after checking current attachment membership.
|
| |
| template<class Sender , class Signal , class Callback > |
| void | watch (Entry ¤t, Sender *sender, Signal signal, Callback callback) |
| | Attach one native signal to this membership's managed connection list.
|
| |
| void | watchSublayers (OpenSWMMVisLayer *key) |
| | Rebind authored sublayer observers after structural changes.
|
| |
| QList< QUuid > | order () const |
| | Copy tracked top-level attachment order without inventing identities.
|
| |
| void | attach (OpenSWMMVisLayer *layer, bool announce) |
| | Wire a new attachment, optionally reporting its committed insertion.
|
| |
| void | detach (OpenSWMMVisLayer *layer) |
| | Disconnect and retire a membership before reporting historical removal.
|
| |
Private per-session attachment map and guarded native signal wiring.
◆ attach()
| void openswmmvis::ExtensionLayerBridge::Data::attach |
( |
OpenSWMMVisLayer * |
layer, |
|
|
bool |
announce |
|
) |
| |
|
inline |
Wire a new attachment, optionally reporting its committed insertion.
- Parameters
-
| [in] | layer | Borrowed newly attached native layer. |
| [in] | announce | False while constructing the initial tracker. |
◆ available()
| bool openswmmvis::ExtensionLayerBridge::Data::available |
( |
| ) |
const |
|
inline |
Verify that native state remains usable for an ordinary observation.
- Returns
- True while the model window/canvas remain available and not closing.
◆ detach()
| void openswmmvis::ExtensionLayerBridge::Data::detach |
( |
OpenSWMMVisLayer * |
layer | ) |
|
|
inline |
Disconnect and retire a membership before reporting historical removal.
- Parameters
-
| [in] | layer | Non-dereferenced native identity, possibly already destroyed. |
◆ entry()
Resolve one tracked and currently attached native identity.
- Parameters
-
| [in] | key | Non-dereferenced native pointer identity. |
- Returns
- Current entry or null after removal/destruction/window close.
◆ order()
| QList< QUuid > openswmmvis::ExtensionLayerBridge::Data::order |
( |
| ) |
const |
|
inline |
Copy tracked top-level attachment order without inventing identities.
- Returns
- Current bottom-to-top runtime identities, excluding unavailable pointers.
◆ publish()
Send one owning observation after checking current attachment membership.
- Parameters
-
| [in] | key | Tracked native identity. |
| [in] | kind | Semantic invalidation reason. |
| [in] | keys | Optional bounded semantic child identities. |
◆ watch()
template<class Sender , class Signal , class Callback >
| void openswmmvis::ExtensionLayerBridge::Data::watch |
( |
Entry & |
current, |
|
|
Sender * |
sender, |
|
|
Signal |
signal, |
|
|
Callback |
callback |
|
) |
| |
|
inline |
Attach one native signal to this membership's managed connection list.
- Template Parameters
-
| Sender | Native QObject type. |
| Signal | Typed native member-signal pointer. |
| Callback | Zero-argument semantic observer. |
- Parameters
-
| [in,out] | current | Owning membership record. |
| [in] | sender | Borrowed required native signal source. |
| [in] | signal | Typed native signal. |
| [in] | callback | GUI-thread receiver action. |
◆ watchSublayers()
| void openswmmvis::ExtensionLayerBridge::Data::watchSublayers |
( |
OpenSWMMVisLayer * |
key | ) |
|
|
inline |
Rebind authored sublayer observers after structural changes.
- Parameters
-
| [in] | key | Tracked native attachment identity. |
- Note
- Dynamic invalidation alone produces no event unless authored metadata changed.
◆ bridge
Owning QObject connection context.
◆ canvas
| QPointer<MapCanvas> openswmmvis::ExtensionLayerBridge::Data::canvas |
Guarded canvas with externally owned layer pointers.
◆ changed
Canonical coordinator callback.
◆ entries
Current memberships only.
◆ lastOrder
| QList<QUuid> openswmmvis::ExtensionLayerBridge::Data::lastOrder |
Last observed top-level attachment order.
◆ window
Guarded native session owner.
The documentation for this struct was generated from the following file: