| 112 | } |
| 113 | |
| 114 | NodeIndex |
| 115 | NodeIndex::left() const |
| 116 | { |
| 117 | if (is_leaf()) { |
| 118 | return *this; |
| 119 | } |
| 120 | |
| 121 | // The clang analyzer doesn't realize that is_leaf() assures that level >= 1 |
| 122 | // NOLINTNEXTLINE(clang-analyzer-core.UndefinedBinaryOperatorResult) |
| 123 | return NodeIndex{ val ^ (one << (level() - 1)) }; |
| 124 | } |
| 125 | |
| 126 | NodeIndex |
| 127 | NodeIndex::right() const |
no outgoing calls
no test coverage detected