| 51 | } |
| 52 | |
| 53 | LeafIndex::LeafIndex(NodeIndex x) |
| 54 | : UInt32(0) |
| 55 | { |
| 56 | if (x.val % 2 == 1) { |
| 57 | throw InvalidParameterError("Only even node indices describe leaves"); |
| 58 | } |
| 59 | |
| 60 | val = x.val >> 1; // NOLINT(hicpp-signed-bitwise) |
| 61 | } |
| 62 | |
| 63 | NodeIndex |
| 64 | LeafIndex::ancestor(LeafIndex other) const |
nothing calls this directly
no test coverage detected