JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
jsonv::recursive_merge_rules Class Reference

These rules will recursively merge everything they can and coerce all values. More...

#include <jsonv/algorithm.hpp>

+ Inheritance diagram for jsonv::recursive_merge_rules:
+ Collaboration diagram for jsonv::recursive_merge_rules:

Public Member Functions

virtual value resolve_same_key (path &&current_path, value &&a, value &&b) const override
 Recursively calls merge_explicit with the two values.
 
virtual value resolve_type_conflict (path &&current_path, value &&a, value &&b) const override
 Calls coerce_merge to combine the values.
 

Detailed Description

These rules will recursively merge everything they can and coerce all values.

Definition at line 339 of file algorithm.hpp.

Member Function Documentation

◆ resolve_same_key()

virtual value jsonv::recursive_merge_rules::resolve_same_key ( path &&  current_path,
value &&  a,
value &&  b 
) const
overridevirtual

Recursively calls merge_explicit with the two values.

Implements jsonv::merge_rules.

◆ resolve_type_conflict()

virtual value jsonv::recursive_merge_rules::resolve_type_conflict ( path &&  current_path,
value &&  a,
value &&  b 
) const
overridevirtual

Calls coerce_merge to combine the values.

Implements jsonv::merge_rules.


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