| 46 | EPTkey::EPTkey() : EPTkey(-1, -1, -1, -1) {} |
| 47 | |
| 48 | std::array<EPTkey, 8> EPTkey::get_children() const |
| 49 | { |
| 50 | std::array<EPTkey, 8> children; |
| 51 | for (U8 direction = 0 ; direction < 8 ; direction++) |
| 52 | { |
| 53 | EPTkey key(*this); |
| 54 | |
| 55 | key.d++; |
| 56 | key.x *= 2; |
| 57 | key.y *= 2; |
| 58 | key.z *= 2; |
| 59 | |
| 60 | if (direction & (((U8)1) << 0)) key.x++; |
| 61 | if (direction & (((U8)1) << 1)) key.y++; |
| 62 | if (direction & (((U8)1) << 2)) key.z++; |
| 63 | |
| 64 | children[direction] = key; |
| 65 | } |
| 66 | |
| 67 | return children; |
| 68 | } |
| 69 | |
| 70 | EPTkey EPTkey::get_parent() const |
| 71 | { |
no outgoing calls
no test coverage detected