Input adapter for a (caching) istream. More...
Collaboration diagram for detail::input_stream_adapter:Public Types | |
| using | char_type = char |
Public Member Functions | |
| input_stream_adapter (const input_stream_adapter &)=delete | |
| input_stream_adapter (input_stream_adapter &&rhs) noexcept | |
| input_stream_adapter (std::istream &i) | |
| ~input_stream_adapter () | |
| std::char_traits< char >::int_type | get_character () |
| template<class T > | |
| std::size_t | get_elements (T *dest, std::size_t count=1) |
| input_stream_adapter & | operator= (input_stream_adapter &&)=delete |
| input_stream_adapter & | operator= (input_stream_adapter &)=delete |
Private Attributes | |
| std::istream * | is = nullptr |
| the associated input stream | |
| std::streambuf * | sb = nullptr |
Input adapter for a (caching) istream.
Ignores a UFT Byte Order Mark at beginning of input. Does not support changing the underlying std::streambuf in mid-input. Maintains underlying std::istream and std::streambuf to support subsequent use of standard std::istream operations to process any input characters following those used in parsing the JSON input. Clears the std::istream flags; any input errors (e.g., EOF) will be detected by the first subsequent call for input from the std::istream.
| using detail::input_stream_adapter::char_type = char |
|
inline |
|
inlineexplicit |
|
delete |
|
inlinenoexcept |
|
inline |
Definition at line 6622 of file json.h.
References is, JSON_HEDLEY_UNLIKELY, and sb.
|
inline |
Definition at line 6634 of file json.h.
References is, JSON_HEDLEY_UNLIKELY, and sb.
|
delete |
|
delete |
|
private |
the associated input stream
Definition at line 6646 of file json.h.
Referenced by ~input_stream_adapter(), get_character(), and get_elements().
|
private |
Definition at line 6647 of file json.h.
Referenced by get_character(), and get_elements().