|
Vince's CSV Parser
|
Public Member Functions | |
| DataFrameRow () | |
| Default constructor (creates an unbound proxy). | |
| DataFrameRow (const CSVRow *_row, DataFrame< KeyType > *_frame, size_t _row_index, RowOverlay *_edits, const KeyType *_key) | |
| Construct a mutable DataFrameRow wrapper. | |
| DataFrameRow (const CSVRow *_row, const DataFrame< KeyType > *_frame, size_t _row_index, const RowOverlay *_edits, const KeyType *_key) | |
| Construct a read-only DataFrameRow wrapper. | |
| DataFrameCell | operator[] (const std::string &col) |
| Access a field by column name, preserving edit support. | |
| DataFrameCell | operator[] (size_t n) |
| Access a field by position, preserving edit support. | |
| DataFrameCell | operator[] (const std::string &col) const |
| Access a field by column name, checking edits first. | |
| DataFrameCell | operator[] (size_t n) const |
| Access a field by position, checking edits first. | |
| DataFrameCell | try_field (size_t index, CSVError &error) |
| Checked cell access. | |
| DataFrameCell | try_field (size_t index, CSVError &error) const |
| DataFrameCell | try_field (const std::string &name, CSVError &error) |
| DataFrameCell | try_field (const std::string &name, CSVError &error) const |
| bool | try_erase (CSVError &error) |
| bool | is_valid () const noexcept |
| Whether the proxy is bound. | |
| size_t | size () const |
| Get the number of visible fields in the row. | |
| bool | empty () const |
| Check if the row is empty. | |
| const std::vector< std::string > & | get_col_names () const |
| Get column names. | |
| const CSVRow & | get_underlying_row () const |
| Get the underlying CSVRow without applying cell edits or column visibility. | |
| const KeyType & | key () const |
| Get the key for this row (only valid for keyed DataFrames). | |
| bool | erase () |
| Delete this row from the parent DataFrame. | |
| operator std::vector< std::string > () const | |
| Convert to vector of strings for CSVWriter compatibility. | |
| std::string | to_json (const std::vector< std::string > &subset={}) const |
| Convert to JSON. | |
| std::string | try_to_json (const std::vector< std::string > &subset, CSVError &error) const |
| Serialize selected visible columns, reporting lookup and physical-row bounds errors. | |
| std::string | to_json_array (const std::vector< std::string > &subset={}) const |
| Convert to JSON array. | |
| std::string | try_to_json_array (const std::vector< std::string > &subset, CSVError &error) const |
| Serialize selected visible columns, reporting lookup and physical-row bounds errors. | |
| auto | to_sv_range () const |
| Convert this DataFrameRow into a std::ranges::input_range of strings, respecting the sparse overlay (edited values take precedence). | |
Definition at line 15 of file data_frame_row.hpp.
|
inline |
Default constructor (creates an unbound proxy).
Definition at line 18 of file data_frame_row.hpp.
|
inline |
Construct a mutable DataFrameRow wrapper.
Definition at line 21 of file data_frame_row.hpp.
|
inline |
Construct a read-only DataFrameRow wrapper.
Definition at line 30 of file data_frame_row.hpp.
|
inline |
Check if the row is empty.
Definition at line 98 of file data_frame_row.hpp.
|
inline |
Delete this row from the parent DataFrame.
Structural mutation invalidates outstanding row and cell proxies.
Definition at line 116 of file data_frame_row.hpp.
|
inline |
Get column names.
Definition at line 101 of file data_frame_row.hpp.
|
inline |
Get the underlying CSVRow without applying cell edits or column visibility.
Use row conversion to obtain the current visible values.
Definition at line 106 of file data_frame_row.hpp.
|
inlinenoexcept |
Whether the proxy is bound.
Structural mutation still invalidates proxies.
Definition at line 92 of file data_frame_row.hpp.
|
inline |
Get the key for this row (only valid for keyed DataFrames).
Definition at line 109 of file data_frame_row.hpp.
|
inline |
Convert to vector of strings for CSVWriter compatibility.
Definition at line 126 of file data_frame_row.hpp.
|
inline |
Access a field by column name, preserving edit support.
Definition at line 40 of file data_frame_row.hpp.
|
inline |
Access a field by column name, checking edits first.
Definition at line 54 of file data_frame_row.hpp.
|
inline |
Access a field by position, preserving edit support.
Definition at line 47 of file data_frame_row.hpp.
|
inline |
Access a field by position, checking edits first.
Definition at line 61 of file data_frame_row.hpp.
|
inline |
Get the number of visible fields in the row.
Definition at line 95 of file data_frame_row.hpp.
|
inline |
Convert to JSON.
Definition at line 140 of file data_frame_row.hpp.
|
inline |
Convert to JSON array.
Definition at line 160 of file data_frame_row.hpp.
|
inline |
Convert this DataFrameRow into a std::ranges::input_range of strings, respecting the sparse overlay (edited values take precedence).
Definition at line 183 of file data_frame_row.hpp.
|
inline |
Definition at line 84 of file data_frame_row.hpp.
|
inline |
Definition at line 75 of file data_frame_row.hpp.
|
inline |
Definition at line 79 of file data_frame_row.hpp.
|
inline |
Checked cell access.
Failure returns an unbound, read-only cell.
Definition at line 67 of file data_frame_row.hpp.
|
inline |
Definition at line 71 of file data_frame_row.hpp.
|
inline |
Serialize selected visible columns, reporting lookup and physical-row bounds errors.
Definition at line 150 of file data_frame_row.hpp.
|
inline |
Serialize selected visible columns, reporting lookup and physical-row bounds errors.
Definition at line 170 of file data_frame_row.hpp.