All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
nlohmann::detail::input_buffer_adapter Class Reference

input adapter for buffer input More...

#include <json.hpp>

Inheritance diagram for nlohmann::detail::input_buffer_adapter:
nlohmann::detail::input_adapter_protocol

Public Member Functions

 input_buffer_adapter (const char *b, const std::size_t l) noexcept
 
 input_buffer_adapter (const input_buffer_adapter &)=delete
 
input_buffer_adapteroperator= (input_buffer_adapter &)=delete
 
 input_buffer_adapter (input_buffer_adapter &&)=delete
 
input_buffer_adapteroperator= (input_buffer_adapter &&)=delete
 
 ~input_buffer_adapter () override=default
 
std::char_traits< char >::int_type get_character () noexceptoverride
 get a character [0,255] or std::char_traits<char>::eof(). More...
 
- Public Member Functions inherited from nlohmann::detail::input_adapter_protocol
virtual ~input_adapter_protocol ()=default
 

Private Attributes

const char * cursor
 pointer to the current character More...
 
const char *const limit
 pointer past the last character More...
 

Detailed Description

input adapter for buffer input

Definition at line 3994 of file json.hpp.

Constructor & Destructor Documentation

nlohmann::detail::input_buffer_adapter::input_buffer_adapter ( const char *  b,
const std::size_t  l 
)
inlinenoexcept

Definition at line 3997 of file json.hpp.

3998  : cursor(b), limit(b == nullptr ? nullptr : (b + l))
3999  {}
const char * cursor
pointer to the current character
Definition: json.hpp:4021
const char *const limit
pointer past the last character
Definition: json.hpp:4023
nlohmann::detail::input_buffer_adapter::input_buffer_adapter ( const input_buffer_adapter )
delete
nlohmann::detail::input_buffer_adapter::input_buffer_adapter ( input_buffer_adapter &&  )
delete
nlohmann::detail::input_buffer_adapter::~input_buffer_adapter ( )
overridedefault

Member Function Documentation

std::char_traits<char>::int_type nlohmann::detail::input_buffer_adapter::get_character ( )
inlineoverridevirtualnoexcept

get a character [0,255] or std::char_traits<char>::eof().

Implements nlohmann::detail::input_adapter_protocol.

Definition at line 4008 of file json.hpp.

4009  {
4011  {
4012  assert(cursor != nullptr and limit != nullptr);
4013  return std::char_traits<char>::to_int_type(*(cursor++));
4014  }
4015 
4016  return std::char_traits<char>::eof();
4017  }
return match has_match and(match.match_pdg==11 or match.match_pdg==-11)
const char * cursor
pointer to the current character
Definition: json.hpp:4021
#define JSON_HEDLEY_LIKELY(expr)
Definition: json.hpp:1123
const char *const limit
pointer past the last character
Definition: json.hpp:4023
input_buffer_adapter& nlohmann::detail::input_buffer_adapter::operator= ( input_buffer_adapter )
delete
input_buffer_adapter& nlohmann::detail::input_buffer_adapter::operator= ( input_buffer_adapter &&  )
delete

Member Data Documentation

const char* nlohmann::detail::input_buffer_adapter::cursor
private

pointer to the current character

Definition at line 4021 of file json.hpp.

const char* const nlohmann::detail::input_buffer_adapter::limit
private

pointer past the last character

Definition at line 4023 of file json.hpp.


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