| 153 | } |
| 154 | |
| 155 | size_t SigNode::GetTopoHash(int distance) const { |
| 156 | CHECK(!topo_hash_.empty()); |
| 157 | if (distance >= topo_hash_.size()) { |
| 158 | CHECK(hash_is_final_); |
| 159 | return topo_hash_.back(); |
| 160 | } else { |
| 161 | return topo_hash_[distance]; |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | bool SigNode::operator==(const SigNode& other) const { |
| 166 | // TODO(babkin): add attributes too. |
no test coverage detected