Structure
EObjectStorage
Internal storage for feature values in an EObject.
struct EObjectStorage
Overview
This helper type manages the dynamic storage of feature values for objects conforming to EObject. It tracks both the values themselves and which features have been explicitly set.
Important
This is a helper type and does not conform to EObject itself. It provides the storage mechanism for types that do conform to EObject.
Implementation Notes
-
Uses a dictionary for efficient feature value lookup by identifier
-
Maintains a separate set to track which features are explicitly set
-
Supports value semantics through
Sendable,Equatable, andHashable
Topics
Initializers
Creates a new empty storage.
Instance Methods
Retrieves the value for a feature.
Retrieves the value for a feature by name.
Get all feature names that have been set in insertion order.
Get all feature IDs that have been set in insertion order.
Checks whether a feature has been explicitly set.
Checks whether a feature has been explicitly set by name.
Sets the value for a feature.
Sets the value for a feature by name.
Unsets a feature, removing its value and set status.
Unsets a feature by name, removing its value and set status.