Neuralyzer::Entity::Lineage
Neuralyzer::Entity::Lineage
Classes
| Name | |
|---|---|
| class | Neuralyzer::Entity::Lineage::EntityResolver |
| class | Neuralyzer::Entity::Lineage::LineageRecorder |
| struct | Neuralyzer::Entity::Lineage::LineageEntry Entry in the lineage registry with metadata. |
| class | Neuralyzer::Entity::Lineage::LineageRegistry Registry for container lineage metadata. |
| class | Neuralyzer::Entity::Lineage::IEntityDataSource Interface for data-source-specific entity resolution. |
| class | Neuralyzer::Entity::Lineage::LineageResolver |
| struct | Neuralyzer::Entity::Lineage::Source No lineage - this is source data or data loaded from file. |
| struct | Neuralyzer::Entity::Lineage::FileOrigin Filesystem provenance for data loaded from disk. |
| struct | Neuralyzer::Entity::Lineage::OneToOneByTime One-to-one mapping by time. |
| struct | Neuralyzer::Entity::Lineage::AllToOneByTime N-to-1 mapping. |
| struct | Neuralyzer::Entity::Lineage::SubsetLineage Subset mapping where derived came from specific subset of source. |
| struct | Neuralyzer::Entity::Lineage::MultiSourceLineage Multi-source when derived from multiple parent containers. |
| struct | Neuralyzer::Entity::Lineage::ExplicitLineage Explicit per-element contributors (highest flexibility, highest storage). |
| struct | Neuralyzer::Entity::Lineage::EntityMappedLineage Explicit entity-to-entity mapping for entity-bearing derived containers. |
| struct | Neuralyzer::Entity::Lineage::ImplicitEntityMapping Implicit entity mapping (computed on demand, no storage). |
Types
| Name | |
|---|---|
| enum class | SourceChangeType { DataAdded, DataRemoved, DataModified, EntityIdsChanged} Type of change that occurred in source data. |
| using std::function< void( std::string const &derived_key, std::string const &source_key, SourceChangeType change_type)> | InvalidationCallback Callback for lineage invalidation events. |
| using std::variant< Source, OneToOneByTime, AllToOneByTime, SubsetLineage, MultiSourceLineage, ExplicitLineage, EntityMappedLineage, ImplicitEntityMapping > | Descriptor Type-erased lineage descriptor. |
Functions
| Name | |
|---|---|
| bool | isSource(Descriptor const & desc) Check if the lineage descriptor represents source data (no parent). |
| std::vector< std::string > | getSourceKeys(Descriptor const & desc) Get all source keys referenced by a lineage descriptor. |
| std::string | getLineageTypeName(Descriptor const & desc) Get a human-readable name for the lineage type. |
Types Documentation
enum SourceChangeType
| Enumerator | Value | Description |
|---|---|---|
| DataAdded | New elements added to source. | |
| DataRemoved | Elements removed from source. | |
| DataModified | Existing elements modified in place. | |
| EntityIdsChanged | EntityIds were reassigned (e.g., rebuildAllEntityIds). |
Type of change that occurred in source data.
using InvalidationCallback
using Neuralyzer::Entity::Lineage::InvalidationCallback = std::function<void(
std::string const & derived_key,
std::string const & source_key,
SourceChangeType change_type)>;Callback for lineage invalidation events.
Parameters:
- derived_key The derived container whose lineage is affected
- source_key The source container that changed
- change_type What kind of change occurred
using Descriptor
using Neuralyzer::Entity::Lineage::Descriptor = std::variant<
Source,
OneToOneByTime,
AllToOneByTime,
SubsetLineage,
MultiSourceLineage,
ExplicitLineage,
EntityMappedLineage,
ImplicitEntityMapping>;Type-erased lineage descriptor.
Use std::visit to dispatch on the actual lineage type.
Functions Documentation
function isSource
inline bool isSource(
Descriptor const & desc
)Check if the lineage descriptor represents source data (no parent).
function getSourceKeys
inline std::vector< std::string > getSourceKeys(
Descriptor const & desc
)Get all source keys referenced by a lineage descriptor.
Return: Vector of source data keys (empty for Source type)
function getLineageTypeName
inline std::string getLineageTypeName(
Descriptor const & desc
)Get a human-readable name for the lineage type.
Updated on 2026-11-13 at 20:25:41 +0000