MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ infer_from_composite_container()

MAYAFLUX_API std::pair< std::vector< Kakshya::DataDimension >, Kakshya::DataModality > MayaFlux::Yantra::infer_from_composite_container ( const std::shared_ptr< Kakshya::CompositeContainer > &  container)

Infer the element axis and modality of a CompositeContainer.

Note
Field names and types remain in the container's CompositeLayout.

Definition at line 64 of file StructureIntrospection.cpp.

65{
66 if (!container) {
67 error<std::invalid_argument>(Journal::Component::Yantra, Journal::Context::Runtime,
68 std::source_location::current(), "Cannot infer structure from null CompositeContainer");
69 }
70
71 auto dimensions = container->get_dimensions();
72 auto modality = container->get_structure().modality;
73 if (modality == Kakshya::DataModality::UNKNOWN)
74 modality = Kakshya::DataModality::TENSOR_ND;
75
76 return { std::move(dimensions), modality };
77}

References MayaFlux::Journal::Runtime, MayaFlux::Kakshya::TENSOR_ND, MayaFlux::Kakshya::UNKNOWN, and MayaFlux::Journal::Yantra.

Referenced by infer_structure().

+ Here is the caller graph for this function: