MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / left

Method left

mlspp/src/tree_math.cpp:114–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114NodeIndex
115NodeIndex::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
126NodeIndex
127NodeIndex::right() const

Callers 7

TreeMathTestVectorMethod · 0.80
verifyMethod · 0.80
siblingMethod · 0.80
parent_hash_validMethod · 0.80
resolveMethod · 0.80
TreeHashInputClass · 0.80
getMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected