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
6
using
json
= nlohmann::json;
7
8
typedef
struct
{
9
std::string
path_a
;
10
std::string
path_b
;
11
double
similarity
;
12
}
RandomSelectorEntry
;
13
14
inline
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
}
json
nlohmann::json json
Definition
function.hpp:22
to_json
void to_json(json &j, const RandomSelectorEntry &d)
Definition
random_selector_entry.hpp:14
RandomSelectorEntry
Definition
random_selector_entry.hpp:8
RandomSelectorEntry::similarity
double similarity
Definition
random_selector_entry.hpp:11
RandomSelectorEntry::path_a
std::string path_a
Definition
random_selector_entry.hpp:9
RandomSelectorEntry::path_b
std::string path_b
Definition
random_selector_entry.hpp:10
src
commands
rand
random_selector_entry.hpp
Generated by
1.12.0