Change UNQUEUED to Unqueued to keep convensions

This commit is contained in:
tamasmeszaros 2022-06-09 11:31:22 +02:00
parent 63a58ce1ad
commit 1a8cf3b029
3 changed files with 10 additions and 6 deletions

View file

@ -67,8 +67,6 @@ private:
return dot_sq < D.squaredNorm() * cos2bridge_slope;
}
static constexpr auto UNQUEUED = size_t(-1);
template<class PC>
static auto *get_node(PC &&pc, size_t id)
{
@ -87,6 +85,8 @@ private:
public:
static constexpr auto Unqueued = size_t(-1);
struct ZCompareFn
{
const PointCloud *self;
@ -155,7 +155,7 @@ public:
m_junctions.emplace_back(p);
m_junctions.back().id = int(new_id);
m_searchable_indices.emplace_back(true);
m_queue_indices.emplace_back(UNQUEUED);
m_queue_indices.emplace_back(Unqueued);
++m_reachable_cnt;
return new_id;
@ -172,7 +172,7 @@ public:
assert(node_id < m_searchable_indices.size());
m_searchable_indices[node_id] = false;
m_queue_indices[node_id] = UNQUEUED;
m_queue_indices[node_id] = Unqueued;
--m_reachable_cnt;
}