| 168 | virtual void reverse() { throw taxonomy::topology_error(); } |
| 169 | virtual size_t calc_hash() const = 0; |
| 170 | virtual size_t hash() const { |
| 171 | if (computed_hash_) { |
| 172 | return computed_hash_; |
| 173 | } |
| 174 | computed_hash_ = calc_hash(); |
| 175 | if (computed_hash_ == 0) { |
| 176 | computed_hash_++; |
| 177 | } |
| 178 | return computed_hash_; |
| 179 | } |
| 180 | |
| 181 | item(const IfcUtil::IfcBaseInterface* instance = nullptr) : identity_(counter_++), computed_hash_(0), instance(instance) {} |
| 182 |
no test coverage detected