Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Euclid::SourceCatalog::PdfFromRow< T > Class Template Reference

#include <PdfFromRow.h>

Inheritance diagram for Euclid::SourceCatalog::PdfFromRow< T >:
Inheritance graph
[legend]
Collaboration diagram for Euclid::SourceCatalog::PdfFromRow< T >:
Collaboration graph
[legend]

Public Member Functions

 PdfFromRow (std::map< std::string, std::vector< T > > keys, std::map< std::string, std::string > column_names)
 
virtual ~PdfFromRow ()=default
 
std::unique_ptr< AttributecreateAttribute (const Euclid::Table::Row &row) override
 The createAttribute method for creating an Attribute from a Table row.
 
- Public Member Functions inherited from Euclid::SourceCatalog::AttributeFromRow
virtual ~AttributeFromRow ()=default
 

Private Attributes

std::map< std::string, std::vector< T > > m_keys
 
std::map< std::string, std::stringm_column_names
 

Detailed Description

template<typename T>
class Euclid::SourceCatalog::PdfFromRow< T >

Definition at line 58 of file PdfFromRow.h.

Constructor & Destructor Documentation

◆ PdfFromRow()

template<typename T >
Euclid::SourceCatalog::PdfFromRow< T >::PdfFromRow ( std::map< std::string, std::vector< T > >  keys,
std::map< std::string, std::string column_names 
)
inline

Definition at line 61 of file PdfFromRow.h.

◆ ~PdfFromRow()

template<typename T >
virtual Euclid::SourceCatalog::PdfFromRow< T >::~PdfFromRow ( )
virtualdefault

Member Function Documentation

◆ createAttribute()

template<typename T >
std::unique_ptr< Attribute > Euclid::SourceCatalog::PdfFromRow< T >::createAttribute ( const Euclid::Table::Row row)
inlineoverridevirtual

The createAttribute method for creating an Attribute from a Table row.

Parameters
rowA reference to a Row of a Table
Returns
A unique pointer to the newly created Attribute

Implements Euclid::SourceCatalog::AttributeFromRow.

Definition at line 66 of file PdfFromRow.h.

References std::map< K, T >::at(), std::copy(), Euclid::SourceCatalog::PdfFromRow< T >::m_column_names, Euclid::SourceCatalog::PdfFromRow< T >::m_keys, and std::move().

Here is the call graph for this function:

Member Data Documentation

◆ m_column_names

template<typename T >
std::map<std::string, std::string> Euclid::SourceCatalog::PdfFromRow< T >::m_column_names
private

◆ m_keys


The documentation for this class was generated from the following file: