Arkanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
random_selector_entry.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <nlohmann/json.hpp>
5
6using json = nlohmann::json;
7
8typedef struct {
9 std::string path_a;
10 std::string path_b;
11 double similarity;
13
14inline void to_json(json& j, const RandomSelectorEntry& d) {
15 j = {
16 {"path_a", d.path_a},
17 {"path_b", d.path_b},
18 {"similarity", d.similarity},
19 };
20}
nlohmann::json json
Definition function.hpp:22
void to_json(json &j, const RandomSelectorEntry &d)