2021-08-29 14:18:45 +02:00
|
|
|
#include <hex/data_processor/link.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
namespace hex::dp {
|
|
|
|
|
2023-11-30 10:22:15 +01:00
|
|
|
int Link::s_idCounter = 1;
|
2021-08-29 14:18:45 +02:00
|
|
|
|
2023-07-26 13:50:51 +02:00
|
|
|
Link::Link(int from, int to) : m_id(s_idCounter++), m_from(from), m_to(to) { }
|
|
|
|
|
|
|
|
void Link::setIdCounter(int id) {
|
|
|
|
if (id > s_idCounter)
|
|
|
|
s_idCounter = id;
|
|
|
|
}
|
2021-08-29 14:18:45 +02:00
|
|
|
}
|