/ / Copyright (c) 1993-2016 Robert McNeel & Associates. All rights reserved. / OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert / McNeel & Associates. / / THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. / ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF / MERCHANTABILITY ARE HEREBY DISCLAIMED. /
/ For complete openNURBS copyright information see http://www.opennurbs.org. / ////////////////////////////////////////////////////////////// defines ON_Hash32Table
ON__UINT32 ON_Hash32TableItem::HashTableItemHash |
( |
| ) |
const |
Returns: If this item has been added to an ON_Hash32Table.AddItem(hash32,item pointer) then the value of hash3d passed as the first argument to ON_Hash32Table.AddItem(hash32,item pointer) is returned. This is the value the ON_Hash32Table uses for this item. Othewise 0 is returned. Remarks: This function is useful when copying hash tables.
count = src_hash_table.ItemCount(); MyHashTableItems src_items[count]; ///< items added to src_hash_table
/ copy src_hash_table MyHashTableItems copied_items[count]; copied_items = src_items; for (unsigned i = 0; i < count; ++i) { ON_SubDSurfaceInterpolatortHash32TableItem& hitem = copied_items[i]; hitem.ClearHashTableSerialNumberForExperts(); m_htable.AddItem(hitem.HashTableItemHash(), &hitem); }