42#ifndef SOURCECATALOG_PDFFROMROW_H
43#define SOURCECATALOG_PDFFROMROW_H
46#include "ElementsKernel/Exception.h"
69 for (
auto& pair :
m_keys) {
78 if (data.size() != pdf.
size()) {
Provides information related with an axis of a GridContainer.
size_t size() const
Returns the total number of cells of the grid.
iterator begin()
Returns an iterator to the first cell of the grid.
Interface for building a source Attribute from a table Row.
PdfFromRow(std::map< std::string, std::vector< T > > keys, std::map< std::string, std::string > column_names)
std::unique_ptr< Attribute > createAttribute(const Euclid::Table::Row &row) override
The createAttribute method for creating an Attribute from a Table row.
virtual ~PdfFromRow()=default
std::map< std::string, std::string > m_column_names
std::map< std::string, std::vector< T > > m_keys
GridContainer::GridContainer< std::vector< double >, T > PdfType
Represents one row of a Table.
std::unique_ptr< T > make_unique(Args &&... args)
Constructs an object of type T and wraps it in a std::unique_ptr using args as the parameter list for...