Horizon
horizon-eda-1.3.0
src
pool
gate.hpp
1
#pragma once
2
#include "nlohmann/json_fwd.hpp"
3
#include "unit.hpp"
4
#include "util/uuid.hpp"
5
#include "util/uuid_ptr.hpp"
6
#include <fstream>
7
#include <map>
8
#include <vector>
9
10
namespace
horizon {
11
using
json
=
nlohmann::json
;
12
13
class
Gate
{
14
public
:
15
Gate
(
const
UUID
&uu,
const
json
&,
class
IPool
&pool);
16
Gate
(
const
UUID
&uu);
17
UUID
get_uuid()
const
;
18
UUID
uuid;
19
std::string name;
20
std::string suffix;
21
unsigned
int
swap_group = 0;
22
uuid_ptr<const Unit>
unit;
23
24
json
serialize()
const
;
25
};
26
}
// namespace horizon
horizon::uuid_ptr
Definition:
uuid_ptr.hpp:8
horizon::Gate
Definition:
gate.hpp:13
horizon::IPool
Definition:
ipool.hpp:12
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:166
horizon::UUID
This class encapsulates a UUID and allows it to be uses as a value type.
Definition:
uuid.hpp:16
nlohmann::json
basic_json<> json
default JSON class
Definition:
json_fwd.hpp:61
Generated by
1.8.20