7#ifndef MINHTON_CORE_LOGICAL_NODE_INFO_H_
8#define MINHTON_CORE_LOGICAL_NODE_INFO_H_
12#include "solanet/serializer/serialize.h"
13#include "solanet/uuid.h"
14#include "solanet/uuid_generator.h"
223 SERIALIZE(level_, number_, fanout_, uuid_, initialized_);
227 uint32_t number_ = 0;
228 uint16_t fanout_ = 0;
229 solanet::UUID uuid_ = solanet::generateUUID();
230 bool initialized_ =
false;
239 std::string rep = std::to_string(l_node_info.
getLevel()) +
":" +
240 std::to_string(l_node_info.
getNumber()) +
":" +
241 std::to_string(l_node_info.
getFanout()) +
243 std::size_t res = std::hash<std::string>()(rep);
Definition logical_node_info.h:23
uint32_t getLevel() const
Definition logical_node_info.cpp:59
uint16_t getFanout() const
Definition logical_node_info.cpp:63
bool isInitialized() const
Definition logical_node_info.cpp:86
uint32_t getNumber() const
Definition logical_node_info.cpp:61
std::string getUuid() const
Definition logical_node_info.cpp:122
bool isSameLevel(LogicalNodeInfo other) const
Definition logical_node_info.cpp:88
bool isPrioNode() const
Definition logical_node_info.cpp:118
solanet::UUID getRawUuid() const
Definition logical_node_info.cpp:124
bool isDeeperThanOrSameLevel(LogicalNodeInfo other) const
Definition logical_node_info.cpp:108
double getHorizontalValue() const
Definition logical_node_info.cpp:126
std::string getString() const
Definition logical_node_info.cpp:54
bool isDeeperThan(LogicalNodeInfo other) const
Definition logical_node_info.cpp:98
void setFanout(uint16_t fanout)
Definition logical_node_info.cpp:65
bool isRoot() const
Definition logical_node_info.cpp:78
void setPosition(uint32_t level, uint32_t number)
Definition logical_node_info.cpp:32
Definition minhton_watchdog_ns3.cpp:24
Definition logical_node_info.h:233