Neuralyzer::Lineage::DataManagerEntityDataSource
Neuralyzer::Lineage::DataManagerEntityDataSource
#include <DataManagerEntityDataSource.hpp>
Inherits from Neuralyzer::Entity::Lineage::IEntityDataSource
Public Functions
| Name | |
|---|---|
| DataManagerEntityDataSource(DataManager * dm) Construct a data source adapter for a DataManager. |
|
| ~DataManagerEntityDataSource() override =default Default destructor. |
|
| DataManagerEntityDataSource(DataManagerEntityDataSource const & ) =delete | |
| DataManagerEntityDataSource & | operator=(DataManagerEntityDataSource const & ) =delete |
| DataManagerEntityDataSource(DataManagerEntityDataSource && ) =delete | |
| DataManagerEntityDataSource & | operator=(DataManagerEntityDataSource && ) =delete |
| virtual std::vector< EntityId > | getEntityIds(std::string const & data_key, TimeFrameIndex time, std::size_t local_index) const override Get EntityIds from a container at a specific time and index. |
| virtual std::vector< EntityId > | getAllEntityIdsAtTime(std::string const & data_key, TimeFrameIndex time) const override Get ALL EntityIds from a container at a specific time. |
| virtual std::unordered_set< EntityId > | getAllEntityIds(std::string const & data_key) const override Get all EntityIds in a container (across all times). |
| virtual std::size_t | getElementCount(std::string const & data_key, TimeFrameIndex time) const override Get the count of elements at a specific time. |
Additional inherited members
Public Functions inherited from Neuralyzer::Entity::Lineage::IEntityDataSource
| Name | |
|---|---|
| virtual | ~IEntityDataSource() =default |
Public Functions Documentation
function DataManagerEntityDataSource
explicit DataManagerEntityDataSource(
DataManager * dm
)Construct a data source adapter for a DataManager.
Parameters:
- dm Pointer to the DataManager (caller owns, must outlive this object)
Note: Non-const because DataManager::getData() is not const-qualified
function ~DataManagerEntityDataSource
~DataManagerEntityDataSource() override =defaultDefault destructor.
function DataManagerEntityDataSource
DataManagerEntityDataSource(
DataManagerEntityDataSource const &
) =deletefunction operator=
DataManagerEntityDataSource & operator=(
DataManagerEntityDataSource const &
) =deletefunction DataManagerEntityDataSource
DataManagerEntityDataSource(
DataManagerEntityDataSource &&
) =deletefunction operator=
DataManagerEntityDataSource & operator=(
DataManagerEntityDataSource &&
) =deletefunction getEntityIds
virtual std::vector< EntityId > getEntityIds(
std::string const & data_key,
TimeFrameIndex time,
std::size_t local_index
) const overrideGet EntityIds from a container at a specific time and index.
Parameters:
- data_key Container identifier
- time Time frame index
- local_index Index within that time (for ragged containers)
Return: EntityIds found at that location (empty if none/not found)
Reimplements: Neuralyzer::Entity::Lineage::IEntityDataSource::getEntityIds
Dispatches to the appropriate data type based on the container’s type and extracts EntityIds at the specified time and local index.
function getAllEntityIdsAtTime
virtual std::vector< EntityId > getAllEntityIdsAtTime(
std::string const & data_key,
TimeFrameIndex time
) const overrideGet ALL EntityIds from a container at a specific time.
Parameters:
- data_key Container identifier
- time Time frame index
Return: All EntityIds at that time
Reimplements: Neuralyzer::Entity::Lineage::IEntityDataSource::getAllEntityIdsAtTime
Returns all entity IDs at the given time point, regardless of local index.
function getAllEntityIds
virtual std::unordered_set< EntityId > getAllEntityIds(
std::string const & data_key
) const overrideGet all EntityIds in a container (across all times).
Parameters:
- data_key Container identifier
Return: Set of all EntityIds in the container
Reimplements: Neuralyzer::Entity::Lineage::IEntityDataSource::getAllEntityIds
Returns the complete set of entity IDs stored in the container. Dispatches to the appropriate extraction method based on data type.
function getElementCount
virtual std::size_t getElementCount(
std::string const & data_key,
TimeFrameIndex time
) const overrideGet the count of elements at a specific time.
Parameters:
- data_key Container identifier
- time Time frame index
Return: Number of elements at that time
Reimplements: Neuralyzer::Entity::Lineage::IEntityDataSource::getElementCount
Returns the number of entities at a time point, enabling iteration over all elements for AllToOne resolution.
Updated on 2026-11-13 at 20:25:41 +0000