Commit 5c34fb3f authored by Quentin Khan's avatar Quentin Khan
Browse files

FNode: add getter to node symbolic data

parent eecd611c
......@@ -207,6 +207,19 @@ public:
std::size_t depth;
/// Node index in parent child array
std::size_t m_idx;
std::size_t getLevel() const {
return this->depth;
}
std::size_t getMortonIndex() const {
return this->m_idx;
}
FTreeCoordinate getCoordinate() const noexcept {
return FTreeCoordinate(this->m_idx);
}
friend std::ostream& operator<<(std::ostream& os, const symbolic_data_t& d) {
return (os << '{' << "\"depth\":" <<d.depth << ',' << "\"index\":" << d.m_idx << '}');
}
};
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment