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

Input adapter for stdio file access. More...

#include "json.h"

+ Collaboration diagram for nlohmann::detail::file_input_adapter:

Public Types

using char_type = char
 
using char_type = char
 

Public Member Functions

 file_input_adapter (const file_input_adapter &)=delete
 
 file_input_adapter (const file_input_adapter &)=delete
 
 file_input_adapter (file_input_adapter &&)=default
 
 file_input_adapter (file_input_adapter &&)=default
 
 file_input_adapter (std::FILE *f) noexcept
 
 file_input_adapter (std::FILE *f) noexcept
 
std::char_traits< char >::int_type get_character () noexcept
 
std::char_traits< char >::int_type get_character () noexcept
 
file_input_adapteroperator= (const file_input_adapter &)=delete
 
file_input_adapteroperator= (const file_input_adapter &)=delete
 
file_input_adapteroperator= (file_input_adapter &&)=delete
 
file_input_adapteroperator= (file_input_adapter &&)=delete
 

Private Attributes

std::FILE * m_file
 the file pointer to read from More...
 

Detailed Description

Input adapter for stdio file access.

This adapter read only 1 byte and do not use any buffer. This adapter is a very low level adapter.

Definition at line 4822 of file json.h.

Member Typedef Documentation

◆ char_type [1/2]

Definition at line 4825 of file json.h.

◆ char_type [2/2]

Definition at line 4825 of file json.h.

Constructor & Destructor Documentation

◆ file_input_adapter() [1/6]

nlohmann::detail::file_input_adapter::file_input_adapter ( std::FILE *  f)
inlineexplicitnoexcept

Definition at line 4828 of file json.h.

◆ file_input_adapter() [2/6]

nlohmann::detail::file_input_adapter::file_input_adapter ( const file_input_adapter )
delete

◆ file_input_adapter() [3/6]

nlohmann::detail::file_input_adapter::file_input_adapter ( file_input_adapter &&  )
default

◆ file_input_adapter() [4/6]

nlohmann::detail::file_input_adapter::file_input_adapter ( std::FILE *  f)
inlineexplicitnoexcept

Definition at line 4828 of file json.h.

◆ file_input_adapter() [5/6]

nlohmann::detail::file_input_adapter::file_input_adapter ( const file_input_adapter )
delete

◆ file_input_adapter() [6/6]

nlohmann::detail::file_input_adapter::file_input_adapter ( file_input_adapter &&  )
default

Member Function Documentation

◆ get_character() [1/2]

std::char_traits<char>::int_type nlohmann::detail::file_input_adapter::get_character ( )
inlinenoexcept

Definition at line 4838 of file json.h.

References m_file.

◆ get_character() [2/2]

std::char_traits<char>::int_type nlohmann::detail::file_input_adapter::get_character ( )
inlinenoexcept

Definition at line 4838 of file json.h.

References m_file.

◆ operator=() [1/4]

file_input_adapter& nlohmann::detail::file_input_adapter::operator= ( const file_input_adapter )
delete

◆ operator=() [2/4]

file_input_adapter& nlohmann::detail::file_input_adapter::operator= ( const file_input_adapter )
delete

◆ operator=() [3/4]

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

◆ operator=() [4/4]

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

Member Data Documentation

◆ m_file

std::FILE * nlohmann::detail::file_input_adapter::m_file
private

the file pointer to read from

Definition at line 4845 of file json.h.

Referenced by get_character().


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