------------------------------------------------------------------------------
| 688 | |
| 689 | //------------------------------------------------------------------------------ |
| 690 | void vtkGenericEdgeTable::IncrementPointReferenceCount(vtkIdType ptId) |
| 691 | { |
| 692 | unsigned int index; |
| 693 | int found = 0; |
| 694 | vtkIdType pos = this->HashFunction(ptId); |
| 695 | |
| 696 | // Need to check size first |
| 697 | assert( |
| 698 | "check: valid range pos" && static_cast<unsigned>(pos) < this->HashPoints->PointVector.size()); |
| 699 | |
| 700 | // Be careful with reference the equal is not overloaded |
| 701 | vtkEdgeTablePoints::VectorPointTableType& vect = this->HashPoints->PointVector[pos]; |
| 702 | |
| 703 | // vtkDebugMacro(<< "IncrementPointReferenceCount:" << ptId << ":" << vect.size() ); |
| 704 | |
| 705 | for (index = 0; index < vect.size(); index++) |
| 706 | { |
| 707 | PointEntry& ent = vect[index]; |
| 708 | if (ent.PointId == ptId) |
| 709 | { |
| 710 | ent.Reference++; |
| 711 | found = 1; |
| 712 | } |
| 713 | } |
| 714 | |
| 715 | if (!found) |
| 716 | { |
| 717 | // We did not find any corresponding entry, warn user |
| 718 | vtkErrorMacro(<< "No entry were found in the hash table"); |
| 719 | } |
| 720 | } |
| 721 | |
| 722 | //------------------------------------------------------------------------------ |
| 723 | void vtkGenericEdgeTable::LoadFactor() |
no test coverage detected