JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
jsonv::function_extractor< T, FExtract > Class Template Reference

An extractor which calls a function to perform extraction. More...

#include <jsonv/serialization/function_extractor.hpp>

+ Inheritance diagram for jsonv::function_extractor< T, FExtract >:
+ Collaboration diagram for jsonv::function_extractor< T, FExtract >:

Public Member Functions

template<typename FUExtract >
 function_extractor (FUExtract &&func)
 
- Public Member Functions inherited from jsonv::extractor_for< T >
virtual const std::type_info & get_type () const override
 Get the run-time type this extractor knows how to extract.
 
virtual void extract (const extraction_context &context, const value &from, void *into) const override
 Extract a the type from a value into a region of memory.
 

Protected Member Functions

virtualcreate (const extraction_context &context, const value &from) const override
 

Detailed Description

template<typename T, typename FExtract>
class jsonv::function_extractor< T, FExtract >

An extractor which calls a function to perform extraction.

Definition at line 25 of file function_extractor.hpp.

Constructor & Destructor Documentation

◆ function_extractor()

template<typename T , typename FExtract >
template<typename FUExtract >
jsonv::function_extractor< T, FExtract >::function_extractor ( FUExtract &&  func)
inlineexplicit

Definition at line 30 of file function_extractor.hpp.

Member Function Documentation

◆ create()

template<typename T , typename FExtract >
virtual T jsonv::function_extractor< T, FExtract >::create ( const extraction_context context,
const value from 
) const
inlineoverrideprotectedvirtual

Implements jsonv::extractor_for< T >.

Definition at line 35 of file function_extractor.hpp.


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