18 lines
305 B
C++
18 lines
305 B
C++
#include <hex/data_processor/link.hpp>
|
|
|
|
|
|
namespace hex::dp {
|
|
|
|
namespace {
|
|
|
|
int s_idCounter = 1;
|
|
|
|
}
|
|
|
|
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;
|
|
}
|
|
} |