|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Functions | |
| template<typename Lattice > | |
| void | require_rank2 (const char *fn) |
| std::string | trim_copy (const std::string &s) |
| std::string | lower_copy (std::string s) |
| bool | blank (const std::string &s) |
| ca_size_t | parse_size_token (const std::string &s, const char *what) |
| ca_index_t | parse_index_token (const std::string &s, const char *what) |
| Array< std::string > | split_comment_lines (const std::string &comment) |
| std::string | json_escape (const std::string &s) |
| std::string | rle_token (ca_size_t n, char glyph) |
| void | append_rle_token (std::string &body, ca_size_t n, char glyph) |
| void | write_wrapped_rle_body (std::ostream &out, const std::string &body, const std::size_t line_width) |
| std::string | header_value (const std::string &line, const std::string &key) |
| void | finalise_absolute_pattern (Binary_Cell_Pattern &pattern, const Array< Coord_Vec< 2 > > &absolute, const bool have_extent, const ca_index_t min_row, const ca_index_t min_col, const ca_index_t max_row, const ca_index_t max_col) |
| template<typename T > | |
| T | parse_scalar (const std::string &token, const char *format) |
| template<typename T > | |
| T | parse_json_number (const std::string &s, std::size_t &pos) |
| ca_size_t | parse_json_size_field (const std::string &s, const std::string &key) |
| void | ensure_stream_ok (const std::ostream &out, const char *fn) |
| template<typename T > | |
| void | write_text_scalar (std::ostream &out, const T &value) |
| template<class F > | |
| auto | try_parse (F &&parse, const char *context) -> expected< std::invoke_result_t< F & >, std::string > |
Invoke a parser, translating any thrown exception into the error channel of expected. | |
|
inline |
Definition at line 397 of file ca-io.H.
References rle_token().
Definition at line 288 of file ca-io.H.
References Aleph::blossom_maximum_cardinality_matching().
Definition at line 539 of file ca-io.H.
References ah_runtime_error_if, Aleph::blossom_maximum_cardinality_matching(), ensure_stream_ok(), and out.
Referenced by ensure_stream_ok().
|
inline |
Definition at line 450 of file ca-io.H.
References Aleph::CA::Binary_Cell_Pattern::alive, Aleph::Array< T >::append(), Aleph::blossom_maximum_cardinality_matching(), Aleph::Array< T >::clear(), Aleph::CA::Binary_Cell_Pattern::height, Aleph::CA::Binary_Cell_Pattern::origin_col, Aleph::CA::Binary_Cell_Pattern::origin_row, Aleph::Array< T >::reserve(), and Aleph::CA::Binary_Cell_Pattern::width.
|
inline |
Definition at line 434 of file ca-io.H.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::eq(), lower_copy(), and trim_copy().
|
inline |
|
inline |
Definition at line 281 of file ca-io.H.
Referenced by header_value().
|
inline |
Definition at line 313 of file ca-io.H.
References ah_domain_error_if, ah_overflow_error_if, Aleph::blossom_maximum_cardinality_matching(), trim_copy(), and value.
Definition at line 493 of file ca-io.H.
References ah_domain_error_if, Aleph::and, Aleph::blossom_maximum_cardinality_matching(), and parse_json_number().
Referenced by parse_json_number().
|
inline |
Definition at line 520 of file ca-io.H.
References ah_domain_error_if, Aleph::and, Aleph::blossom_maximum_cardinality_matching(), parse_json_size_field(), and parse_size_token().
Referenced by parse_json_size_field().
Definition at line 479 of file ca-io.H.
References ah_domain_error_unless, Aleph::blossom_maximum_cardinality_matching(), parse_scalar(), trim_copy(), and value.
Referenced by parse_scalar().
|
inline |
Definition at line 296 of file ca-io.H.
References ah_domain_error_if, ah_overflow_error_if, Aleph::blossom_maximum_cardinality_matching(), trim_copy(), and value.
Referenced by parse_json_size_field().
Definition at line 263 of file ca-io.H.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Lattice< Storage, Boundary >::rank.
Definition at line 386 of file ca-io.H.
Referenced by append_rle_token().
|
inline |
Definition at line 339 of file ca-io.H.
References Aleph::blossom_maximum_cardinality_matching().
|
inline |
Definition at line 270 of file ca-io.H.
References Aleph::and.
Referenced by header_value(), parse_index_token(), parse_scalar(), and parse_size_token().
| auto Aleph::CA::ca_io_detail::try_parse | ( | F && | parse, |
| const char * | context | ||
| ) | -> expected<std::invoke_result_t<F &>, std::string> |
Invoke a parser, translating any thrown exception into the error channel of expected.
The Aleph error macros (ah_*_error) throw types deriving from std::exception, so their message is preserved.
Definition at line 1647 of file ca-io.H.
References Aleph::blossom_maximum_cardinality_matching(), and try_parse().
Referenced by try_parse().
Definition at line 545 of file ca-io.H.
References Aleph::and, Aleph::blossom_maximum_cardinality_matching(), out, value, and write_text_scalar().
Referenced by write_text_scalar().
|
inline |
Definition at line 402 of file ca-io.H.
References ah_domain_error_if, Aleph::and, col, and out.