|
Vince's CSV Parser
|
Classes | |
| struct | cell_accessor |
Public Types | |
| using | iterator = internals::indexed_proxy_iterator< const DataFrameColumn< KeyType >, DataFrameCell, cell_accessor > |
| using | const_iterator = iterator |
Public Member Functions | |
| DataFrameColumn (const DataFrame< KeyType > *frame, size_t col_index) | |
| DataFrameColumn (DataFrame< KeyType > *frame, size_t col_index) | |
| const std::string & | name () const |
| Column name. | |
| DataFrameCell | try_field (size_t row_index, CSVError &error) |
| Checked cell access, preserving mutability of the column proxy. | |
| DataFrameCell | try_field (size_t row_index, CSVError &error) const |
| csv::string_view | try_get_sv (size_t row_index, CSVError &error) const |
| csv::string_view | try_name (CSVError &error) const |
| template<typename T = std::string> | |
| std::vector< T > | try_to_vector (CSVError &error) const |
| bool | try_erase (CSVError &error) |
| bool | is_valid () const noexcept |
| Whether this column is bound to an existing position in the active schema. | |
| size_t | index () const noexcept |
| Zero-based column position. | |
| size_t | size () const noexcept |
| Number of rows in the parent batch. | |
| bool | empty () const noexcept |
| Whether the parent batch contains no rows. | |
| DataFrameCell | operator[] (size_t row_index) |
| Access a visible cell value by row index, allowing edits on mutable frames. | |
| DataFrameCell | operator[] (size_t row_index) const |
| Access a visible cell value by row index without allowing edits. | |
| csv::string_view | get_sv (size_t row_index) const |
| Access a visible cell value as a string_view without materializing a DataFrameCell. | |
| template<typename T = std::string> | |
| std::vector< T > | to_vector () const |
| Materialize this column as a vector of converted values. | |
| operator std::vector< std::string > () const | |
| Convert to a vector of strings. | |
| bool | erase () |
| Delete this column from the parent DataFrame. | |
| auto | to_sv_range () const |
| Convert this DataFrameColumn into a std::ranges::input_range of strings. | |
| iterator | begin () const |
| Iterate over visible cells in this column. | |
| iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
Definition at line 14 of file data_frame_column.hpp.
| using csv::DataFrameColumn< KeyType >::const_iterator = iterator |
Definition at line 23 of file data_frame_column.hpp.
| using csv::DataFrameColumn< KeyType >::iterator = internals::indexed_proxy_iterator<const DataFrameColumn<KeyType>, DataFrameCell, cell_accessor> |
Definition at line 22 of file data_frame_column.hpp.
|
inline |
Definition at line 25 of file data_frame_column.hpp.
|
inline |
Definition at line 27 of file data_frame_column.hpp.
|
inline |
Definition at line 34 of file data_frame_column.hpp.
|
inline |
Iterate over visible cells in this column.
Definition at line 207 of file data_frame_column.hpp.
|
inline |
Definition at line 209 of file data_frame_column.hpp.
|
inline |
Definition at line 210 of file data_frame_column.hpp.
|
inlinenoexcept |
Whether the parent batch contains no rows.
Definition at line 118 of file data_frame_column.hpp.
|
inline |
Definition at line 208 of file data_frame_column.hpp.
|
inline |
Delete this column from the parent DataFrame.
Structural mutation invalidates outstanding row, column, and cell proxies.
Definition at line 184 of file data_frame_column.hpp.
|
inline |
Access a visible cell value as a string_view without materializing a DataFrameCell.
Intended for immediate read-only scans. If the value comes from the sparse edit overlay, the returned view points into overlay-owned storage and must not be retained across DataFrame mutation.
Definition at line 149 of file data_frame_column.hpp.
|
inlinenoexcept |
Zero-based column position.
Definition at line 104 of file data_frame_column.hpp.
|
inlinenoexcept |
Whether this column is bound to an existing position in the active schema.
Definition at line 98 of file data_frame_column.hpp.
|
inline |
Column name.
Definition at line 43 of file data_frame_column.hpp.
|
inline |
Convert to a vector of strings.
Definition at line 170 of file data_frame_column.hpp.
|
inline |
Access a visible cell value by row index, allowing edits on mutable frames.
Definition at line 124 of file data_frame_column.hpp.
|
inline |
Access a visible cell value by row index without allowing edits.
Definition at line 134 of file data_frame_column.hpp.
|
inlinenoexcept |
Number of rows in the parent batch.
Definition at line 109 of file data_frame_column.hpp.
|
inline |
Convert this DataFrameColumn into a std::ranges::input_range of strings.
Definition at line 197 of file data_frame_column.hpp.
|
inline |
Materialize this column as a vector of converted values.
Definition at line 160 of file data_frame_column.hpp.
|
inline |
Definition at line 90 of file data_frame_column.hpp.
|
inline |
Checked cell access, preserving mutability of the column proxy.
Definition at line 52 of file data_frame_column.hpp.
|
inline |
Definition at line 56 of file data_frame_column.hpp.
|
inline |
Definition at line 60 of file data_frame_column.hpp.
|
inline |
Definition at line 68 of file data_frame_column.hpp.
|
inline |
Definition at line 73 of file data_frame_column.hpp.