|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <toml.hpp>
Public Member Functions | |
| parser (utf8_reader_interface &&reader_) | |
| TOML_NODISCARD | operator parse_result () &&noexcept |
Static Private Member Functions | |
| static void | update_region_ends (node &nde) noexcept |
Private Attributes | |
| utf8_buffered_reader | reader |
| table | root |
| source_position | prev_pos = { 1, 1 } |
| const utf8_codepoint * | cp = {} |
| std::vector< table * > | implicit_tables |
| std::vector< table * > | dotted_key_tables |
| std::vector< table * > | open_inline_tables |
| std::vector< array * > | table_arrays |
| parse_key_buffer | key_buffer |
| std::string | string_buffer |
| std::string | recording_buffer |
| bool | recording = false |
| bool | recording_whitespace = true |
| std::string_view | current_scope |
| size_t | nested_values = {} |
| optional< parse_error > | err |
Static Private Attributes | |
| static constexpr size_t | max_nested_values = TOML_MAX_NESTED_VALUES |
|
inline |
Definition at line 15970 of file toml.hpp.
References cp, err, parse_document(), prev_pos, reader, root, and update_region_ends().
|
inlineprivate |
Definition at line 13575 of file toml.hpp.
References assert_not_eof, cp, err, is_eof, prev_pos, reader, recording, recording_buffer, recording_whitespace, and return_if_error.
Referenced by consume_rest_of_line(), and parse_value().
|
inlineprivate |
Definition at line 13687 of file toml.hpp.
References advance_and_return_if_error, consume_line_break(), cp, is_eof, push_parse_scope, return_if_error, return_if_error_or_eof, set_error_and_return_default, and TOML_UNLIKELY.
Referenced by parse_array(), parse_document(), parse_inline_table(), and parse_table_header().
|
inlineprivate |
Definition at line 13741 of file toml.hpp.
References advance_and_return_if_error, cp, return_if_error, set_error_and_return_if_eof, and TOML_ASSERT_ASSUME.
Referenced by parse_date(), parse_date_time(), and parse_time().
|
inlineprivate |
Definition at line 13724 of file toml.hpp.
References advance_and_return_if_error, cp, return_if_error, set_error_and_return_if_eof, and TOML_ASSERT.
Referenced by parse_boolean(), and parse_inf_or_nan().
|
inlineprivate |
Definition at line 13627 of file toml.hpp.
References advance_and_return_if_error, cp, is_eof, return_if_error_or_eof, set_error_and_return_default, and TOML_UNLIKELY.
Referenced by parse_array(), parse_basic_string(), parse_document(), parse_inline_table(), parse_key(), parse_key_value_pair_and_insert(), and parse_table_header().
|
inlineprivate |
Definition at line 13643 of file toml.hpp.
References advance_and_return_if_error, cp, is_eof, return_if_error_or_eof, set_error_and_return_default, and TOML_UNLIKELY.
Referenced by consume_comment(), consume_rest_of_line(), parse_array(), parse_basic_string(), parse_document(), parse_inline_table(), parse_literal_string(), and parse_table_header().
|
inlineprivate |
Definition at line 13670 of file toml.hpp.
References advance(), consume_line_break(), cp, is_eof, return_if_error, and return_if_error_or_eof.
|
inlineprivate |
Definition at line 13761 of file toml.hpp.
References advance_and_return_if_error, cp, is_eof, return_if_error, and TOML_ASSERT_ASSUME.
Referenced by parse_time().
|
inlineprivatenoexcept |
Definition at line 13532 of file toml.hpp.
References cp, is_eof, and prev_pos.
Referenced by parse_document(), parse_key(), parse_table_header(), parse_value(), and set_error().
|
inlineprivatenoexcept |
Definition at line 13566 of file toml.hpp.
References count(), cp, prev_pos, reader, return_if_error, and TOML_ASSERT_ASSUME.
Referenced by parse_string(), and parse_value().
|
inlineprivate |
Definition at line 15547 of file toml.hpp.
References key_buffer, root, and TOML_ASSERT.
Referenced by parse_key_value_pair_and_insert(), and parse_table_header().
|
inlinenoexcept |
|
private |
Definition at line 16013 of file toml.hpp.
References advance_and_return_if_error, advance_and_return_if_error_or_eof, assert_not_eof, consume_comment(), consume_leading_whitespace(), consume_line_break(), cp, is_error, parse_value(), push_parse_scope, return_if_error, set_error_and_return_default, set_error_and_return_if_eof, to_sv(), TOML_ASSERT_ASSUME, and TOML_CLOSED_ENUM.
Referenced by parse_value_known_prefixes().
|
inlineprivate |
Definition at line 14170 of file toml.hpp.
References advance_and_return_if_error, assert_not_eof, cp, is_eof, return_if_error, string_buffer, and TOML_ASSERT_ASSUME.
Referenced by parse_key().
|
inlineprivate |
Definition at line 13781 of file toml.hpp.
References advance_and_return_if_error, advance_and_return_if_error_or_eof, assert_not_eof, consume_leading_whitespace(), consume_line_break(), cp, is_eof, push_parse_scope, return_if_error, set_error_and_return_default, set_error_and_return_if_eof, string_buffer, to_sv(), TOML_ASSERT_ASSUME, TOML_UNLIKELY, TOML_UNLIKELY_CASE, and TOML_UNREACHABLE.
Referenced by parse_string().
|
inlineprivate |
Definition at line 14192 of file toml.hpp.
References assert_not_eof, consume_expected_sequence(), cp, push_parse_scope, recording_buffer, result, return_if_error, set_error_and_return_default, start_recording(), stop_recording(), to_sv(), and TOML_ASSERT_ASSUME.
Referenced by parse_value_known_prefixes().
|
inlineprivate |
Definition at line 14732 of file toml.hpp.
References advance_and_return_if_error_or_eof, assert_not_eof, consume_digit_sequence(), cp, is_eof, push_parse_scope, return_if_error, set_error_and_return_default, set_error_and_return_if_eof, to_sv(), and TOML_ASSERT_ASSUME.
Referenced by parse_date_time(), and parse_value().
|
inlineprivate |
Definition at line 14874 of file toml.hpp.
References advance_and_return_if_error, advance_and_return_if_error_or_eof, assert_not_eof, consume_digit_sequence(), cp, is_eof, time_offset::minutes, parse_date(), parse_time(), push_parse_scope, return_if_error, set_error_and_return_default, set_error_and_return_if_eof, to_sv(), and TOML_ASSERT_ASSUME.
Referenced by parse_value().
|
inlineprivate |
Definition at line 15883 of file toml.hpp.
References assert_not_eof, assert_not_error, table::begin(), consume_comment(), consume_leading_whitespace(), consume_line_break(), cp, current_position(), table::end(), is_eof, parse_key_value_pair_and_insert(), parse_table_header(), push_parse_scope, return_if_error, root, set_error(), and to_sv().
Referenced by parser().
|
inlineprivate |
Definition at line 14247 of file toml.hpp.
References advance_and_return_if_error, advance_and_return_if_error_or_eof, assert_not_eof, cp, is_eof, utf8_buffered_reader::max_history_length, push_parse_scope, result, return_if_error, set_error_and_return_default, set_error_and_return_if_eof, to_sv(), TOML_ASSERT_ASSUME, TOML_LIKELY_CASE, and TOML_UNLIKELY.
Referenced by parse_value(), and parse_value_known_prefixes().
|
inlineprivate |
Definition at line 14404 of file toml.hpp.
References advance_and_return_if_error, advance_and_return_if_error_or_eof, assert_not_eof, cp, is_eof, push_parse_scope, return_if_error, set_error_and_return_default, set_error_and_return_if_eof, to_sv(), TOML_ASSERT_ASSUME, and value().
Referenced by parse_value().
|
inlineprivate |
Definition at line 14217 of file toml.hpp.
References advance_and_return_if_error_or_eof, assert_not_eof, consume_expected_sequence(), cp, push_parse_scope, recording_buffer, return_if_error, set_error_and_return_default, start_recording(), stop_recording(), to_sv(), and TOML_ASSERT_ASSUME.
Referenced by parse_value(), and parse_value_known_prefixes().
|
private |
Definition at line 16082 of file toml.hpp.
References advance_and_return_if_error, advance_and_return_if_error_or_eof, assert_not_eof, consume_comment(), consume_leading_whitespace(), consume_line_break(), cp, is_error, table::is_inline(), open_inline_tables, parse_key_value_pair_and_insert(), push_parse_scope, return_if_error, set_error_and_return_default, set_error_and_return_if_eof, to_sv(), TOML_ASSERT_ASSUME, TOML_CLOSED_ENUM, and TOML_LANG_UNRELEASED.
Referenced by parse_value_known_prefixes().
|
inlineprivate |
Definition at line 14581 of file toml.hpp.
References advance_and_return_if_error, advance_and_return_if_error_or_eof, assert_not_eof, cp, end(), is_eof, utf8_buffered_reader::max_history_length, push_parse_scope, result, return_if_error, set_error_and_return_default, set_error_and_return_if_eof, to_sv(), and TOML_UNLIKELY.
Referenced by parse_value().
|
inlineprivate |
Definition at line 15477 of file toml.hpp.
References advance_and_return_if_error_or_eof, assert_not_eof, consume_leading_whitespace(), cp, current_position(), is_eof, is_error, key_buffer, parse_bare_key_segment(), parse_string(), push_parse_scope, recording_whitespace, return_after_error, return_if_error, set_error_and_return_default, set_error_and_return_if_eof, set_error_at(), to_sv(), TOML_ASSERT_ASSUME, parsed_string::value, and parsed_string::was_multi_line.
Referenced by parse_key_value_pair_and_insert(), and parse_table_header().
|
inlineprivate |
Definition at line 15784 of file toml.hpp.
References advance_and_return_if_error_or_eof, assert_not_eof, consume_leading_whitespace(), cp, dotted_key_tables, table::end(), implicit_tables, key_buffer, table::lower_bound(), make_key(), p, parse_key(), parse_value(), push_parse_scope, recording_buffer, return_after_error, return_if_error, set_error(), set_error_and_return_default, set_error_and_return_if_eof, set_error_at(), start_recording(), stop_recording(), to_sv(), TOML_ASSERT, TOML_ASSERT_ASSUME, and TOML_UNLIKELY.
Referenced by parse_document(), and parse_inline_table().
|
inlineprivate |
Definition at line 14023 of file toml.hpp.
References advance_and_return_if_error, advance_and_return_if_error_or_eof, assert_not_eof, consume_line_break(), cp, is_eof, push_parse_scope, return_if_error, set_error_and_return_default, set_error_and_return_if_eof, string_buffer, TOML_ASSERT_ASSUME, TOML_UNLIKELY, and TOML_UNREACHABLE.
Referenced by parse_string().
|
inlineprivate |
Definition at line 14126 of file toml.hpp.
References advance_and_return_if_error, advance_and_return_if_error_or_eof, assert_not_eof, cp, go_back(), is_eof, parse_basic_string(), parse_literal_string(), push_parse_scope, return_if_error, set_error_and_return_default, and TOML_ASSERT_ASSUME.
Referenced by parse_key(), and parse_value_known_prefixes().
|
inlineprivate |
Definition at line 15559 of file toml.hpp.
References advance_and_return_if_error, advance_and_return_if_error_or_eof, assert_not_eof, consume_comment(), consume_leading_whitespace(), consume_line_break(), cp, current_position(), implicit_tables, is_eof, key_buffer, make_key(), ok, open_inline_tables, p, parent, parse_key(), push_parse_scope, reader, recording_buffer, return_after_error, return_if_error, root, set_error_and_return_default, set_error_and_return_if_eof, set_error_at(), start_recording(), stop_recording(), table_arrays, to_sv(), TOML_ASSERT, and TOML_ASSERT_ASSUME.
Referenced by parse_document().
|
inlineprivate |
Definition at line 14786 of file toml.hpp.
References advance_and_return_if_error_or_eof, assert_not_eof, consume_digit_sequence(), consume_variable_length_digit_sequence(), cp, is_eof, time::nanosecond, push_parse_scope, return_if_error, time::second, set_error_and_return_default, set_error_and_return_if_eof, to_sv(), TOML_ASSERT_ASSUME, TOML_LANG_UNRELEASED, and value().
Referenced by parse_date_time(), and parse_value().
|
inlineprivate |
Definition at line 14990 of file toml.hpp.
References advance(), advance_and_return_if_error, assert_not_eof, cp, current_position(), go_back(), is_eof, utf8_buffered_reader::max_history_length, max_nested_values, nested_values, parse_date(), parse_date_time(), parse_float(), parse_hex_float(), parse_inf_or_nan(), parse_integer(), parse_time(), parse_value_known_prefixes(), push_parse_scope, reader, return_after_error, return_if_error, set_error_and_return_default, set_error_at(), TOML_ASSERT_ASSUME, TOML_CLOSED_FLAGS_ENUM, TOML_COMPILER_HAS_EXCEPTIONS, TOML_UNLIKELY, value(), and value_flags::value_flags.
Referenced by parse_array(), and parse_key_value_pair_and_insert().
|
inlineprivate |
Definition at line 14948 of file toml.hpp.
References assert_not_eof, cp, parse_array(), parse_boolean(), parse_float(), parse_inf_or_nan(), parse_inline_table(), parse_string(), return_if_error, TOML_ASSERT_ASSUME, TOML_UNREACHABLE, parsed_string::value, and value().
Referenced by parse_value().
|
inlineprivate |
Definition at line 13561 of file toml.hpp.
References current_position(), and set_error_at().
Referenced by parse_document(), and parse_key_value_pair_and_insert().
|
inlineprivate |
Definition at line 13542 of file toml.hpp.
References current_scope, err, parse_error_break, reader, and return_if_error.
Referenced by parse_key(), parse_key_value_pair_and_insert(), parse_table_header(), parse_value(), and set_error().
|
inlineprivatenoexcept |
Definition at line 13598 of file toml.hpp.
References cp, is_eof, recording, recording_buffer, recording_whitespace, and return_if_error.
Referenced by parse_boolean(), parse_inf_or_nan(), parse_key_value_pair_and_insert(), and parse_table_header().
|
inlineprivatenoexcept |
Definition at line 13609 of file toml.hpp.
References recording, recording_buffer, and return_if_error.
Referenced by parse_boolean(), parse_inf_or_nan(), parse_key_value_pair_and_insert(), and parse_table_header().
|
inlinestaticprivatenoexcept |
Definition at line 15933 of file toml.hpp.
References end(), TOML_UNUSED, and update_region_ends().
Referenced by parser(), and update_region_ends().
|
private |
Definition at line 13516 of file toml.hpp.
Referenced by advance(), consume_comment(), consume_digit_sequence(), consume_expected_sequence(), consume_leading_whitespace(), consume_line_break(), consume_rest_of_line(), consume_variable_length_digit_sequence(), current_position(), feedtwin.props.state.ThermoState::gamma(), go_back(), parse_array(), parse_bare_key_segment(), parse_basic_string(), parse_boolean(), parse_date(), parse_date_time(), parse_document(), parse_float(), parse_hex_float(), parse_inf_or_nan(), parse_inline_table(), parse_integer(), parse_key(), parse_key_value_pair_and_insert(), parse_literal_string(), parse_string(), parse_table_header(), parse_time(), parse_value(), parse_value_known_prefixes(), parser(), and start_recording().
|
private |
Definition at line 13525 of file toml.hpp.
Referenced by set_error_at().
|
private |
Definition at line 13518 of file toml.hpp.
Referenced by parse_key_value_pair_and_insert().
|
mutableprivate |
Definition at line 13528 of file toml.hpp.
Referenced by advance(), operator parse_result(), parser(), and set_error_at().
|
private |
Definition at line 13517 of file toml.hpp.
Referenced by parse_key_value_pair_and_insert(), and parse_table_header().
|
private |
Definition at line 13521 of file toml.hpp.
Referenced by make_key(), parse_key(), parse_key_value_pair_and_insert(), and parse_table_header().
|
staticconstexprprivate |
Definition at line 13511 of file toml.hpp.
Referenced by parse_value().
|
private |
Definition at line 13526 of file toml.hpp.
Referenced by parse_value().
|
private |
Definition at line 13519 of file toml.hpp.
Referenced by parse_inline_table(), and parse_table_header().
|
private |
|
private |
Definition at line 13513 of file toml.hpp.
Referenced by advance(), go_back(), parse_table_header(), parse_value(), parser(), and set_error_at().
|
private |
Definition at line 13524 of file toml.hpp.
Referenced by advance(), start_recording(), and stop_recording().
|
private |
Definition at line 13523 of file toml.hpp.
Referenced by advance(), parse_boolean(), parse_inf_or_nan(), parse_key_value_pair_and_insert(), parse_table_header(), start_recording(), and stop_recording().
|
private |
Definition at line 13524 of file toml.hpp.
Referenced by advance(), parse_key(), and start_recording().
|
private |
Definition at line 13514 of file toml.hpp.
Referenced by make_key(), operator parse_result(), parse_document(), parse_table_header(), parser(), smart_calibration_gui.SmartCalibrationGUI::run(), pt_calibration_gui.HighPerformanceCalibrationGUI::setup_gui(), and smart_calibration_gui.SmartCalibrationGUI::setup_gui().
|
private |
Definition at line 13522 of file toml.hpp.
Referenced by parse_bare_key_segment(), parse_basic_string(), and parse_literal_string().
|
private |
Definition at line 13520 of file toml.hpp.
Referenced by parse_table_header().