EleFits  5.0.0
A modern C++ API on top of CFITSIO

◆ makeColumn()

Column< typename TContainer::value_type, std::decay_t< TInfo >::Dim, TContainer > makeColumn ( TInfo  info,
TContainer &&  data 
)
related

Shortcut to create a column from a column info and data without specifying the template parameters.

Template Parameters
TThe value type, should not be specified (automatically deduced)
Parameters
infoThe column info
dataThe column values, which can be either a pointer (or C array) or a vector

Example usage:

auto column = makeColumn(std::move(info), std::move(vector)); // Copy-less
Column< typename TContainer::value_type, std::decay_t< TInfo >::Dim, TContainer > makeColumn(TInfo info, TContainer &&data)
Shortcut to create a column from a column info and data without specifying the template parameters.
Definition: Column.h:250
const Info & info() const
Get the column metadata.
std::vector< T > vector() const
Copy the container values into an std::vector.
Definition: DataContainer.h:267
T move(T... args)
Examples
EleFitsBintableExample.cpp.