A Discrete-Event Network Simulator
API
nlohmann::detail::input_stream_adapter Class Reference

Input adapter for a (caching) istream. More...

#include "json.h"

+ Collaboration diagram for nlohmann::detail::input_stream_adapter:

Public Types

using char_type = char
 
using char_type = char
 

Public Member Functions

 input_stream_adapter (const input_stream_adapter &)=delete
 
 input_stream_adapter (const input_stream_adapter &)=delete
 
 input_stream_adapter (input_stream_adapter &&rhs) noexcept
 
 input_stream_adapter (input_stream_adapter &&rhs) noexcept
 
 input_stream_adapter (std::istream &i)
 
 input_stream_adapter (std::istream &i)
 
 ~input_stream_adapter ()
 
 ~input_stream_adapter ()
 
std::char_traits< char >::int_type get_character ()
 
std::char_traits< char >::int_type get_character ()
 
input_stream_adapteroperator= (input_stream_adapter &&rhs)=delete
 
input_stream_adapteroperator= (input_stream_adapter &&rhs)=delete
 
input_stream_adapteroperator= (input_stream_adapter &)=delete
 
input_stream_adapteroperator= (input_stream_adapter &)=delete
 

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 4858 of file json.h.

Member Typedef Documentation

◆ char_type [1/2]

Definition at line 4861 of file json.h.

◆ char_type [2/2]

Definition at line 4861 of file json.h.

Constructor & Destructor Documentation

◆ ~input_stream_adapter() [1/2]

nlohmann::detail::input_stream_adapter::~input_stream_adapter ( )
inline

Definition at line 4863 of file json.h.

References is.

◆ input_stream_adapter() [1/6]

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

Definition at line 4873 of file json.h.

◆ input_stream_adapter() [2/6]

nlohmann::detail::input_stream_adapter::input_stream_adapter ( const input_stream_adapter )
delete

◆ input_stream_adapter() [3/6]

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

Definition at line 4882 of file json.h.

◆ ~input_stream_adapter() [2/2]

nlohmann::detail::input_stream_adapter::~input_stream_adapter ( )
inline

Definition at line 4863 of file json.h.

References is.

◆ input_stream_adapter() [4/6]

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

Definition at line 4873 of file json.h.

◆ input_stream_adapter() [5/6]

nlohmann::detail::input_stream_adapter::input_stream_adapter ( const input_stream_adapter )
delete

◆ input_stream_adapter() [6/6]

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

Definition at line 4882 of file json.h.

Member Function Documentation

◆ get_character() [1/2]

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

Definition at line 4891 of file json.h.

References is, JSON_HEDLEY_UNLIKELY, two-ray-to-three-gpp-ch-calibration::res, and sb.

◆ get_character() [2/2]

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

Definition at line 4891 of file json.h.

References is, JSON_HEDLEY_UNLIKELY, two-ray-to-three-gpp-ch-calibration::res, and sb.

◆ operator=() [1/4]

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

◆ operator=() [2/4]

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

◆ operator=() [3/4]

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

◆ operator=() [4/4]

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

Member Data Documentation

◆ is

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

the associated input stream

Definition at line 4904 of file json.h.

Referenced by ~input_stream_adapter(), and get_character().

◆ sb

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

Definition at line 4905 of file json.h.

Referenced by get_character().


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