42#ifndef SOURCECATALOG_PDFFROMROW_H
43#define SOURCECATALOG_PDFFROMROW_H
46#include "ElementsKernel/Exception.h"
55namespace SourceCatalog {
69 for (
auto& pair :
m_keys) {
78 if (data.size() != pdf.size()) {
83 std::copy(data.begin(), data.end(), pdf.begin());
86 pdf_map.emplace(pair.first,
std::move(pdf));
Provides information related with an axis of a GridContainer.
Representation of a multi-dimensional grid which contains axis information.
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
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...