|
rapidyaml
0.11.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 115 of file parser_state.hpp.
|
default |
|
inline |
Definition at line 129 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 143 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 160 of file parser_state.hpp.
References c4::yml::LineContents::full, line_contents, and c4::yml::LineContents::rem.
|
inlinenoexcept |
Definition at line 164 of file parser_state.hpp.
References c4::yml::LineContents::indentation, indref, line_contents, and c4::yml::npos.
|
inlinenoexcept |
Definition at line 169 of file parser_state.hpp.
References c4::yml::LineContents::indentation, indref, line_contents, and c4::yml::npos.
|
inlinenoexcept |
Definition at line 174 of file parser_state.hpp.
References c4::yml::LineContents::indentation, indref, line_contents, and c4::yml::npos.
|
inlinenoexcept |
Definition at line 179 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 117 of file parser_state.hpp.
| Location c4::yml::ParserState::pos |
Definition at line 118 of file parser_state.hpp.
| ParserFlag_t c4::yml::ParserState::flags |
Definition at line 119 of file parser_state.hpp.
| size_t c4::yml::ParserState::indref |
the reference indentation in the current block scope
Definition at line 120 of file parser_state.hpp.
| id_type c4::yml::ParserState::level |
Definition at line 121 of file parser_state.hpp.
| 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 122 of file parser_state.hpp.
| size_t c4::yml::ParserState::scalar_col |
Definition at line 123 of file parser_state.hpp.
| bool c4::yml::ParserState::more_indented |
Definition at line 124 of file parser_state.hpp.
| bool c4::yml::ParserState::has_children |
Definition at line 125 of file parser_state.hpp.