|
rapidyaml
0.8.0
parse and emit YAML, and do it fast
|
#include <parser_state.hpp>
Public Member Functions | |
| ParserState ()=default | |
| void | start_parse (const char *file, id_type node_id_) |
| void | reset_after_push () |
| void | reset_before_pop (ParserState const &to_pop) |
| bool | at_line_beginning () const noexcept |
| bool | indentation_eq () const noexcept |
| bool | indentation_ge () const noexcept |
| bool | indentation_gt () const noexcept |
| bool | indentation_lt () const noexcept |
Public Attributes | |
| LineContents | line_contents |
| Location | pos |
| ParserFlag_t | flags |
| size_t | indref |
| the reference indentation in the current block scope More... | |
| id_type | level |
| id_type | node_id |
| don't hold a pointer to the node as it will be relocated during tree resizes More... | |
| size_t | scalar_col |
| bool | more_indented |
| bool | has_children |
Definition at line 134 of file parser_state.hpp.
|
default |
|
inline |
Definition at line 148 of file parser_state.hpp.
References c4::yml::Location::col, has_children, indref, level, c4::yml::Location::line, more_indented, c4::yml::Location::name, node_id, c4::yml::Location::offset, pos, scalar_col, and c4::to_csubstr().
|
inline |
Definition at line 162 of file parser_state.hpp.
References has_children, indref, level, more_indented, node_id, c4::yml::NONE, and c4::yml::npos.
|
inline |
|
inlinenoexcept |
Definition at line 179 of file parser_state.hpp.
References c4::yml::LineContents::full, line_contents, and c4::yml::LineContents::rem.
|
inlinenoexcept |
Definition at line 183 of file parser_state.hpp.
References c4::yml::LineContents::indentation, indref, line_contents, and c4::yml::npos.
|
inlinenoexcept |
Definition at line 188 of file parser_state.hpp.
References c4::yml::LineContents::indentation, indref, line_contents, and c4::yml::npos.
|
inlinenoexcept |
Definition at line 193 of file parser_state.hpp.
References c4::yml::LineContents::indentation, indref, line_contents, and c4::yml::npos.
|
inlinenoexcept |
Definition at line 198 of file parser_state.hpp.
References c4::yml::LineContents::indentation, indref, line_contents, and c4::yml::npos.
| LineContents c4::yml::ParserState::line_contents |
Definition at line 136 of file parser_state.hpp.
Referenced by at_line_beginning(), indentation_eq(), indentation_ge(), indentation_gt(), indentation_lt(), and reset_before_pop().
| Location c4::yml::ParserState::pos |
Definition at line 137 of file parser_state.hpp.
Referenced by reset_before_pop(), and start_parse().
| ParserFlag_t c4::yml::ParserState::flags |
Definition at line 138 of file parser_state.hpp.
| size_t c4::yml::ParserState::indref |
the reference indentation in the current block scope
Definition at line 139 of file parser_state.hpp.
Referenced by indentation_eq(), indentation_ge(), indentation_gt(), indentation_lt(), reset_after_push(), and start_parse().
| id_type c4::yml::ParserState::level |
Definition at line 140 of file parser_state.hpp.
Referenced by reset_after_push(), and start_parse().
| id_type c4::yml::ParserState::node_id |
don't hold a pointer to the node as it will be relocated during tree resizes
Definition at line 141 of file parser_state.hpp.
Referenced by reset_after_push(), and start_parse().
| size_t c4::yml::ParserState::scalar_col |
Definition at line 142 of file parser_state.hpp.
Referenced by start_parse().
| bool c4::yml::ParserState::more_indented |
Definition at line 143 of file parser_state.hpp.
Referenced by reset_after_push(), and start_parse().
| bool c4::yml::ParserState::has_children |
Definition at line 144 of file parser_state.hpp.
Referenced by reset_after_push(), and start_parse().