25#ifndef TABLE_COLUMNINFO_H
26#define TABLE_COLUMNINFO_H
34#include "ElementsKernel/Export.h"
Contains the description of a specific column of a Table.
std::unique_ptr< std::size_t > find(const std::string &name) const
Returns the index of a column, given the name of it, or nullptr if there is no column with this name.
bool operator==(const ColumnInfo &other) const
Returns true if this ColumnInfo represents the same columns with the given one.
const ColumnDescription & getDescription(std::size_t index) const
Returns the description of the column with the given index or throws an exception if the index is big...
ColumnDescription info_type
std::size_t size() const
Returns the number of columns represented by this ColumnInfo.
std::vector< info_type > m_info_list
bool operator!=(const ColumnInfo &other) const
Returns false if this ColumnInfo represents the same columns with the given one.
virtual ~ColumnInfo()=default
Default destructor.
ColumnInfo(std::vector< info_type > info_list)
Constructs a ColumnInfo representing the given column names and types.