6 #ifndef TURI_UNITY_AUTO_CLOSE_SARRAY 7 #define TURI_UNITY_AUTO_CLOSE_SARRAY 17 m_columns.resize(column_types.size());
18 for (
size_t col_idx = 0; col_idx < column_types.size(); col_idx++) {
19 m_columns[col_idx] = std::make_shared<sarray<flexible_type>>();
20 m_columns[col_idx]->open_for_write();
21 m_columns[col_idx]->set_type(column_types[col_idx]);
31 for(
auto column: m_columns) {
38 std::vector<std::shared_ptr<sarray<flexible_type>>> get_sarrays() {
43 std::vector<std::shared_ptr<sarray<flexible_type>>> m_columns;
44 bool m_closed =
false;