Arkanjo 0.1
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
detail::input_stream_adapter Class Reference

#include <json.hpp>

Public Types

using char_type = char
 

Public Member Functions

 ~input_stream_adapter ()
 
 input_stream_adapter (std::istream &i)
 
 input_stream_adapter (const input_stream_adapter &)=delete
 
input_stream_adapteroperator= (input_stream_adapter &)=delete
 
input_stream_adapteroperator= (input_stream_adapter &&)=delete
 
 input_stream_adapter (input_stream_adapter &&rhs) noexcept
 
std::char_traits< char >::int_type get_character ()
 
template<class T >
std::size_t get_elements (T *dest, std::size_t count=1)
 

Detailed Description

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.

Definition at line 6585 of file json.hpp.

Member Typedef Documentation

◆ char_type

Definition at line 6588 of file json.hpp.

Constructor & Destructor Documentation

◆ ~input_stream_adapter()

detail::input_stream_adapter::~input_stream_adapter ( )

Definition at line 6590 of file json.hpp.

◆ input_stream_adapter() [1/3]

detail::input_stream_adapter::input_stream_adapter ( std::istream & i)
explicit

Definition at line 6600 of file json.hpp.

◆ input_stream_adapter() [2/3]

detail::input_stream_adapter::input_stream_adapter ( const input_stream_adapter & )
delete

◆ input_stream_adapter() [3/3]

detail::input_stream_adapter::input_stream_adapter ( input_stream_adapter && rhs)
noexcept

Definition at line 6609 of file json.hpp.

Member Function Documentation

◆ get_character()

std::char_traits< char >::int_type detail::input_stream_adapter::get_character ( )

Definition at line 6619 of file json.hpp.

◆ get_elements()

template<class T >
std::size_t detail::input_stream_adapter::get_elements ( T * dest,
std::size_t count = 1 )

Definition at line 6631 of file json.hpp.

◆ operator=() [1/2]

input_stream_adapter & detail::input_stream_adapter::operator= ( input_stream_adapter && )
delete

◆ operator=() [2/2]

input_stream_adapter & detail::input_stream_adapter::operator= ( input_stream_adapter & )
delete

The documentation for this class was generated from the following file: