Implementation of ValueVisitor that skips over the parsed value and discards the result.
More...
#include <donut/json.hpp>
template<typename It>
struct donut::json::Parser< It >::SkipValueVisitor
Implementation of ValueVisitor that skips over the parsed value and discards the result.
◆ visitNull()
Callback for values of type Null.
- Parameters
-
source | location of the parsed value. |
value | parsed value. |
- Exceptions
-
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
◆ visitBoolean()
Callback for values of type Boolean.
- Parameters
-
source | location of the parsed value. |
value | parsed value. |
- Exceptions
-
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
◆ visitString()
Callback for values of type String.
- Parameters
-
source | location of the parsed value. |
value | parsed value. |
- Exceptions
-
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
◆ visitNumber()
Callback for values of type Number.
- Parameters
-
source | location of the parsed value. |
value | parsed value. |
- Exceptions
-
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
◆ visitObject()
Callback for objects.
- Parameters
-
source | location of the beginning of the encountered object. |
parser | parser that should be used to parse the object. |
- Warning
- Implementations must advance the parser to the end of the encountered object, past the last closing curly brace.
-
Implementations must not advance the parser past the end of the encountered object.
- Exceptions
-
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
◆ visitArray()
Callback for arrays.
- Parameters
-
source | location of the beginning of the encountered array. |
parser | parser that should be used to parse the array. |
- Warning
- Implementations must advance the parser to the end of the encountered array, past the last closing square bracket.
-
Implementations must not advance the parser past the end of the encountered array.
- Exceptions
-
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
The documentation for this struct was generated from the following file: