MUQ  0.4.3
nlohmann::detail::output_stream_adapter< CharType > Class Template Reference

output adapter for output streams More...

#include <json.h>

Inheritance diagram for nlohmann::detail::output_stream_adapter< CharType >:

Detailed Description

template<typename CharType>
class nlohmann::detail::output_stream_adapter< CharType >

output adapter for output streams

Definition at line 12669 of file json.h.

Public Member Functions

 output_stream_adapter (std::basic_ostream< CharType > &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_stream_adapter()

template<typename CharType >
nlohmann::detail::output_stream_adapter< CharType >::output_stream_adapter ( std::basic_ostream< CharType > &  s)
inlineexplicitnoexcept

Definition at line 12672 of file json.h.

Member Function Documentation

◆ JSON_HEDLEY_NON_NULL()

template<typename CharType >
nlohmann::detail::output_stream_adapter< CharType >::JSON_HEDLEY_NON_NULL ( ) const

◆ write_character()

template<typename CharType >
void nlohmann::detail::output_stream_adapter< CharType >::write_character ( CharType  c)
inlineoverridevirtual

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

Definition at line 12676 of file json.h.

Member Data Documentation

◆ override

template<typename CharType >
std::size_t length nlohmann::detail::output_stream_adapter< CharType >::override
Initial value:
{
stream.write(s, static_cast<std::streamsize>(length))
std::basic_ostream< CharType > & stream
Definition: json.h:12688

Definition at line 12682 of file json.h.

◆ stream

template<typename CharType >
std::basic_ostream<CharType>& nlohmann::detail::output_stream_adapter< CharType >::stream
private

Definition at line 12688 of file json.h.


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