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

◆ get_total_elements()

uint64_t MayaFlux::Kakshya::PlotContainer::get_total_elements ( ) const
overridevirtual

Get the total number of elements in the container.

Returns
Product of all dimension sizes

Implements MayaFlux::Kakshya::NDDataContainer< DataVariant >.

Definition at line 231 of file PlotContainer.cpp.

232{
233 uint64_t total = 0;
234 for (const auto& v : m_data) {
235 const auto* vec = std::get_if<std::vector<double>>(&v);
236 if (vec)
237 total += vec->size();
238 }
239 return total;
240}
uint32_t total
std::vector< DataVariant > m_data

References m_data, and total.