30 #include <boost/regex.hpp> 32 using boost::regex_match;
33 #include <boost/algorithm/string/join.hpp> 45 while (++it != v.
end()) {
63 : m_values(
std::move(values)), m_column_info{column_info} {
67 if (m_values.size() != m_column_info->size()) {
69 <<
" instead of " << m_column_info->size();
72 if (
std::type_index{m_values[i].type()} != column_info->getDescription(i).type) {
76 regex whitespace {
".*\\s.*"};
77 for (
auto cell : m_values) {
85 <<
"whitespace characters";
std::vector< cell_type > m_values
template std::ostream & operator<<< bool >(std::ostream &s, const std::vector< bool > &v)
boost::variant< bool, int32_t, int64_t, float, double, std::string, std::vector< bool >, std::vector< int32_t >, std::vector< int64_t >, std::vector< float >, std::vector< double >, NdArray::NdArray< bool >, NdArray::NdArray< int32_t >, NdArray::NdArray< int64_t >, NdArray::NdArray< float >, NdArray::NdArray< double > > cell_type
The possible cell types.
size_t size() const
Returns the number of cells in the row.
const_iterator end() const
Returns a const iterator to the past-the-end cell of the row.
const_iterator begin() const
Returns a const iterator to the first cell of the row.
std::vector< cell_type >::const_iterator const_iterator
std::shared_ptr< ColumnInfo > m_column_info
const cell_type & operator[](const size_t index) const
Returns the value of the column with the given index (zero based)
template std::ostream & operator<<< float >(std::ostream &s, const std::vector< float > &v)
std::shared_ptr< ColumnInfo > getColumnInfo() const
Returns a ColumnInfo object describing the columns of the Row.
template std::ostream & operator<<< double >(std::ostream &s, const std::vector< double > &v)
std::ostream & operator<<(std::ostream &s, const std::vector< T > &v)