Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
nlohmann::detail::output_vector_adapter< CharType > Class Template Reference

output adapter for byte vectors More...

#include <json.hpp>

Inheritance diagram for nlohmann::detail::output_vector_adapter< CharType >:
Collaboration diagram for nlohmann::detail::output_vector_adapter< CharType >:

Public Member Functions

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

Private Attributes

std::vector< CharType > & v
 

Detailed Description

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

output adapter for byte vectors

Definition at line 6238 of file json.hpp.

Constructor & Destructor Documentation

template<typename CharType >
nlohmann::detail::output_vector_adapter< CharType >::output_vector_adapter ( std::vector< CharType > &  vec)
inlineexplicitnoexcept

Definition at line 6241 of file json.hpp.

6242  : v(vec)
6243  {}
std::vector< CharType > & v
Definition: json.hpp:6256

Member Function Documentation

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

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

Definition at line 6245 of file json.hpp.

6246  {
6247  v.push_back(c);
6248  }
std::vector< CharType > & v
Definition: json.hpp:6256
template<typename CharType >
void nlohmann::detail::output_vector_adapter< CharType >::write_characters ( const CharType *  s,
std::size_t  length 
)
inlineoverridevirtual

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

Definition at line 6250 of file json.hpp.

6251  {
6252  std::copy(s, s + length, std::back_inserter(v));
6253  }
std::vector< CharType > & v
Definition: json.hpp:6256

Member Data Documentation

template<typename CharType >
std::vector<CharType>& nlohmann::detail::output_vector_adapter< CharType >::v
private

Definition at line 6256 of file json.hpp.


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