JSON Voorhees
Killer JSON for C++
|
An adapter for container types. More...
#include <jsonv/serialization_util.hpp>
Protected Member Functions | |
virtual TContainer | create (const extraction_context &context, const value &from) const override |
virtual value | to_json (const serialization_context &context, const TContainer &from) const override |
Additional Inherited Members | |
Public Member Functions inherited from jsonv::adapter_for< TContainer > | |
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 container types.
This is for convenience of creating an adapter
for things like std::vector
, std::set
and such.
TContainer | is the container to create and encode. It must have a member type value_type , support iteration and an insert operation. |
Definition at line 372 of file serialization_util.hpp.