Alexandria  2.27.0
SDC-CH common library for the Euclid project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
Euclid::GridContainer::GridCellToTable< T, Enable > Struct Template Reference

#include <GridContainerToTable.h>

Static Public Member Functions

static void addColumnDescriptions (const T &c, std::vector< Table::ColumnDescription > &columns)
 
static void addCells (const T &c, std::vector< Table::Row::cell_type > &row)
 

Detailed Description

template<typename T, typename Enable = void>
struct Euclid::GridContainer::GridCellToTable< T, Enable >

Trait used to map the grid cell type into an Alexandria's table set of cells.

Template Parameters
TType to be mapped

Definition at line 63 of file GridContainerToTable.h.

Member Function Documentation

template<typename T, typename Enable = void>
static void Euclid::GridContainer::GridCellToTable< T, Enable >::addCells ( const T &  c,
std::vector< Table::Row::cell_type > &  row 
)
static

Add the cell values into the row

Parameters
cA cell instance to be serialized
rowDestination row. New cells must be appended on the same order as the column descriptions.

Referenced by Euclid::GridContainer::GridToFitsHelper< 0, GridCellManager, Axes...>::unfold().

template<typename T, typename Enable = void>
static void Euclid::GridContainer::GridCellToTable< T, Enable >::addColumnDescriptions ( const T &  c,
std::vector< Table::ColumnDescription > &  columns 
)
static

Get the column descriptions of the values of the cell. The element passed will be one reference cell from the grid (i.e. the first one)

Parameters
cA cell instance
columnsThe column description(s) for the cell type. New columns must be appended

Referenced by Euclid::GridContainer::gridContainerToTable().


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