| 546 | } |
| 547 | |
| 548 | node_t* FindNode(const TYPE* name) const |
| 549 | { |
| 550 | assert(name != nullptr); |
| 551 | |
| 552 | if (0 == mnSize) |
| 553 | { |
| 554 | return nullptr; |
| 555 | } |
| 556 | |
| 557 | size_t hash = TRAITS::Hash(name); |
| 558 | size_t bucket = GetBucket(hash); |
| 559 | node_t* node = mpBuckets[bucket]; |
| 560 | |
| 561 | while (node) |
| 562 | { |
| 563 | if ((node->hash == hash) && TRAITS::Equal(node->name, name)) |
| 564 | { |
| 565 | return node; |
| 566 | } |
| 567 | |
| 568 | node = node->next; |
| 569 | } |
| 570 | |
| 571 | return nullptr; |
| 572 | } |
| 573 | |
| 574 | void Expand() |
| 575 | { |
nothing calls this directly
no outgoing calls
no test coverage detected