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

◆ get_total_elements() [2/2]

uint64_t MayaFlux::Kakshya::ContainerDataStructure::get_total_elements ( const std::vector< DataDimension > &  dimensions)
static

Get total elements across all dimensions.

Parameters
dimensionsVector of dimension descriptors
Returns
Total number of elements

Definition at line 143 of file NDimensionalContainer.cpp.

144{
145 uint64_t total = 1;
146 for (const auto& dim : dimensions) {
147 total *= dim.size;
148 }
149 return total;
150}

References dimensions.

Referenced by MayaFlux::Kakshya::WindowContainer::clear(), MayaFlux::Kakshya::SoundStreamContainer::get_total_elements(), MayaFlux::Kakshya::WindowContainer::get_total_elements(), and MayaFlux::Kakshya::ContiguousAccessProcessor::store_metadata().

+ Here is the caller graph for this function: