JSON Voorhees
Killer JSON for C++
|
An adapter for "wrapper" types. More...
#include <jsonv/serialization_util.hpp>
Protected Member Functions | |
virtual TWrapper | create (const extraction_context &context, const value &from) const override |
virtual value | to_json (const serialization_context &context, const TWrapper &from) const override |
Additional Inherited Members | |
Public Member Functions inherited from jsonv::adapter_for< TWrapper > | |
virtual const std::type_info & | get_type () const override |
Get the run-time type this extractor knows how to extract. More... | |
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. More... | |
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. More... | |
An adapter for "wrapper" types.
TWrapper | A wrapper type with a member value_type which represents the underlying wrapped type. This must be explicitly convertible to and from the value_type . |
Definition at line 404 of file serialization_util.hpp.