Definition at line 32 of file parse_index.hpp.
◆ value_type
◆ operator!=()
| bool jsonv::parse_index::iterator::operator!= |
( |
const iterator & |
other | ) |
const |
|
inline |
◆ operator++()
| iterator jsonv::parse_index::iterator::operator++ |
( |
int |
| ) |
|
|
inline |
◆ operator<()
| bool jsonv::parse_index::iterator::operator< |
( |
const iterator & |
other | ) |
const |
|
inline |
◆ operator<=()
| bool jsonv::parse_index::iterator::operator<= |
( |
const iterator & |
other | ) |
const |
|
inline |
◆ operator==()
| bool jsonv::parse_index::iterator::operator== |
( |
const iterator & |
other | ) |
const |
|
inline |
◆ operator>()
| bool jsonv::parse_index::iterator::operator> |
( |
const iterator & |
other | ) |
const |
|
inline |
◆ operator>=()
| bool jsonv::parse_index::iterator::operator>= |
( |
const iterator & |
other | ) |
const |
|
inline |
◆ skip_subtree()
| iterator & jsonv::parse_index::iterator::skip_subtree |
( |
| ) |
|
Move to the node after the structure this iterator is on, however much is inside it.
This is a constant-time operation. The index records where each structure ends as it parses the matching close token, so stepping over a subtree costs the same whether it holds one element or a million. Use it to ignore a value without paying to walk it.
If the structure was never closed – only possible when parse_index::success is false – the error which truncated the document stands in as its end, so this moves to the end of the index.
- Exceptions
-
| std::invalid_argument | if this iterator is not on a ast_node_type::document_start, ast_node_type::object_begin or ast_node_type::array_begin. |
◆ parse_index
The documentation for this class was generated from the following file: