|
Vince's CSV Parser
|
Proxy class that wraps a CSVRow and intercepts field access to check for edits. More...
#include <data_frame.hpp>
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. | |
| size_t | size () const |
| Get the number of 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 for compatibility. | |
| 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 | to_json_array (const std::vector< std::string > &subset={}) const |
| Convert to JSON array. | |
| auto | to_sv_range () const |
| Convert this DataFrameRow into a std::ranges::input_range of strings, respecting the sparse overlay (edited values take precedence). | |
Proxy class that wraps a CSVRow and intercepts field access to check for edits.
Provides transparent access to both original and edited cell values.
Definition at line 582 of file data_frame.hpp.
|
inline |
Default constructor (creates an unbound proxy).
Definition at line 585 of file data_frame.hpp.
|
inline |
Construct a mutable DataFrameRow wrapper.
Definition at line 588 of file data_frame.hpp.
|
inline |
Construct a read-only DataFrameRow wrapper.
Definition at line 597 of file data_frame.hpp.
|
inline |
Check if the row is empty.
Definition at line 629 of file data_frame.hpp.
|
inline |
Delete this row from the parent DataFrame.
Structural mutation invalidates outstanding row and cell proxies.
Definition at line 644 of file data_frame.hpp.
|
inline |
Get column names.
Definition at line 632 of file data_frame.hpp.
|
inline |
Get the underlying CSVRow for compatibility.
Definition at line 635 of file data_frame.hpp.
|
inline |
Get the key for this row (only valid for keyed DataFrames).
Definition at line 638 of file data_frame.hpp.
|
inline |
Convert to vector of strings for CSVWriter compatibility.
Definition at line 653 of file data_frame.hpp.
|
inline |
Access a field by column name, preserving edit support.
Definition at line 606 of file data_frame.hpp.
|
inline |
Access a field by column name, checking edits first.
Definition at line 616 of file data_frame.hpp.
|
inline |
Access a field by position, preserving edit support.
Definition at line 611 of file data_frame.hpp.
|
inline |
Access a field by position, checking edits first.
Definition at line 621 of file data_frame.hpp.
|
inline |
Get the number of fields in the row.
Definition at line 626 of file data_frame.hpp.
|
inline |
Convert to JSON.
Definition at line 664 of file data_frame.hpp.
|
inline |
Convert to JSON array.
Definition at line 674 of file data_frame.hpp.
|
inline |
Convert this DataFrameRow into a std::ranges::input_range of strings, respecting the sparse overlay (edited values take precedence).
Definition at line 689 of file data_frame.hpp.