SIRIUS 7.5.0
Electronic structure library and applications
Public Types | Public Member Functions | Private Attributes | List of all members
detail::input_stream_adapter Class Reference

#include <nlohmann_json.hpp>

Public Types

using char_type = char
 

Public Member Functions

 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 ()
 

Private Attributes

std::istream * is = nullptr
 the associated input stream More...
 
std::streambuf * sb = nullptr
 

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 6157 of file nlohmann_json.hpp.

Member Typedef Documentation

◆ char_type

using detail::input_stream_adapter::char_type = char

Definition at line 6160 of file nlohmann_json.hpp.

Constructor & Destructor Documentation

◆ ~input_stream_adapter()

detail::input_stream_adapter::~input_stream_adapter ( )
inline

Definition at line 6162 of file nlohmann_json.hpp.

◆ input_stream_adapter() [1/2]

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

Definition at line 6172 of file nlohmann_json.hpp.

◆ input_stream_adapter() [2/2]

detail::input_stream_adapter::input_stream_adapter ( input_stream_adapter &&  rhs)
inlinenoexcept

Definition at line 6181 of file nlohmann_json.hpp.

Member Function Documentation

◆ get_character()

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

Definition at line 6191 of file nlohmann_json.hpp.

Member Data Documentation

◆ is

std::istream* detail::input_stream_adapter::is = nullptr
private

the associated input stream

Definition at line 6204 of file nlohmann_json.hpp.

◆ sb

std::streambuf* detail::input_stream_adapter::sb = nullptr
private

Definition at line 6205 of file nlohmann_json.hpp.


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