2021-01-30 22:39:06 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace hex::dp {
|
|
|
|
|
|
|
|
class Link {
|
|
|
|
public:
|
2022-10-06 09:14:46 +02:00
|
|
|
Link(int from, int to);
|
2021-01-30 22:39:06 +01:00
|
|
|
|
2023-12-19 13:10:25 +01:00
|
|
|
[[nodiscard]] int getId() const { return m_id; }
|
|
|
|
void setId(int id) { m_id = id; }
|
2021-05-17 23:17:58 +02:00
|
|
|
|
2023-12-19 13:10:25 +01:00
|
|
|
[[nodiscard]] int getFromId() const { return m_from; }
|
|
|
|
[[nodiscard]] int getToId() const { return m_to; }
|
2022-02-01 18:09:40 +01:00
|
|
|
|
2023-07-26 13:50:51 +02:00
|
|
|
static void setIdCounter(int id);
|
2021-01-30 22:39:06 +01:00
|
|
|
|
|
|
|
private:
|
2022-10-06 09:14:46 +02:00
|
|
|
int m_id;
|
|
|
|
int m_from, m_to;
|
2023-11-30 10:22:15 +01:00
|
|
|
|
|
|
|
static int s_idCounter;
|
2021-01-30 22:39:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|