GNode library (C++)
Loading...
Searching...
No Matches
link.hpp
Go to the documentation of this file.
1/* Copyright (c) 2023 Otto Link. Distributed under the terms of the GNU General
2 * Public License. The full license is in the file LICENSE, distributed with
3 * this software. */
4
20#pragma once
21#include <string>
22#include <vector>
23
24namespace gnode
25{
26
36struct Link
37{
38 std::string from;
40 std::string to;
41 int port_to;
42
50 Link(std::string from, int port_from, std::string to, int port_to)
52 {
53 }
54
60 bool operator==(const Link &other_link) const;
61
67 void print();
68};
69
70} // namespace gnode
Definition data.hpp:23