MUQ  0.4.3
nlohmann::detail::output_string_adapter< CharType, StringType > Class Template Reference

output adapter for basic_string More...

#include <json.h>

Inheritance diagram for nlohmann::detail::output_string_adapter< CharType, StringType >:

Detailed Description

template<typename CharType, typename StringType = std::basic_string<CharType>>
class nlohmann::detail::output_string_adapter< CharType, StringType >

output adapter for basic_string

Definition at line 12693 of file json.h.

Public Member Functions

 output_string_adapter (StringType &s) noexcept
 
void write_character (CharType c) override
 
 JSON_HEDLEY_NON_NULL (2) void write_characters(const CharType *s
 
- Public Member Functions inherited from nlohmann::detail::output_adapter_protocol< CharType >
virtual void write_characters (const CharType *s, std::size_t length)=0
 
virtual ~output_adapter_protocol ()=default
 

Public Attributes

std::size_t length override
 

Constructor & Destructor Documentation

◆ output_string_adapter()

template<typename CharType , typename StringType = std::basic_string<CharType>>
nlohmann::detail::output_string_adapter< CharType, StringType >::output_string_adapter ( StringType &  s)
inlineexplicitnoexcept

Definition at line 12696 of file json.h.

Member Function Documentation

◆ JSON_HEDLEY_NON_NULL()

template<typename CharType , typename StringType = std::basic_string<CharType>>
nlohmann::detail::output_string_adapter< CharType, StringType >::JSON_HEDLEY_NON_NULL ( ) const

◆ write_character()

template<typename CharType , typename StringType = std::basic_string<CharType>>
void nlohmann::detail::output_string_adapter< CharType, StringType >::write_character ( CharType  c)
inlineoverridevirtual

Implements nlohmann::detail::output_adapter_protocol< CharType >.

Definition at line 12700 of file json.h.

Member Data Documentation

◆ override

template<typename CharType , typename StringType = std::basic_string<CharType>>
std::size_t length nlohmann::detail::output_string_adapter< CharType, StringType >::override
Initial value:
{
str.append(s, length)

Definition at line 12706 of file json.h.

◆ str

template<typename CharType , typename StringType = std::basic_string<CharType>>
StringType& nlohmann::detail::output_string_adapter< CharType, StringType >::str
private

Definition at line 12712 of file json.h.


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