JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
jsonv::function_serializer< T, FToJson > Class Template Reference
+ Inheritance diagram for jsonv::function_serializer< T, FToJson >:
+ Collaboration diagram for jsonv::function_serializer< T, FToJson >:

Public Member Functions

template<typename FUToJson >
 function_serializer (FUToJson &&to_json_)
 
- Public Member Functions inherited from jsonv::serializer_for< T >
virtual const std::type_info & get_type () const override
 Get the run-time type this serialize knows how to encode.
 
virtual value to_json (const serialization_context &context, const void *from) const override
 Create a value from the value in the given region of memory.
 

Protected Member Functions

virtual value to_json (const serialization_context &context, const T &from) const override
 

Detailed Description

template<typename T, typename FToJson>
class jsonv::function_serializer< T, FToJson >

Definition at line 24 of file function_serializer.hpp.

Constructor & Destructor Documentation

◆ function_serializer()

template<typename T , typename FToJson >
template<typename FUToJson >
jsonv::function_serializer< T, FToJson >::function_serializer ( FUToJson &&  to_json_)
inlineexplicit

Definition at line 29 of file function_serializer.hpp.

Member Function Documentation

◆ to_json()

template<typename T , typename FToJson >
virtual value jsonv::function_serializer< T, FToJson >::to_json ( const serialization_context context,
const T &  from 
) const
inlineoverrideprotectedvirtual

Implements jsonv::serializer_for< T >.

Definition at line 35 of file function_serializer.hpp.


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