public BitVector Clone( ) { BitVector res = (BitVector)MemberwiseClone(); res.m_bitArray = ArrayUtility.CopyNotNullArray(m_bitArray); return(res); }
public GrowOnlySet <TKey> Clone( ) { GrowOnlySet <TKey> copy = CloneSettings(); if (Count > 0) { copy.m_buckets = ArrayUtility.CopyNotNullArray(m_buckets); copy.m_entries_HashCode = ArrayUtility.CopyNotNullArray(m_entries_HashCode); copy.m_entries_Next = ArrayUtility.CopyNotNullArray(m_entries_Next); copy.m_entries_Key = ArrayUtility.CopyNotNullArray(m_entries_Key); copy.Count = Count; } return(copy); }
public GrowOnlyHashTable <TKey, TValue> Clone( ) { GrowOnlyHashTable <TKey, TValue> copy = CloneSettings(); if (Count > 0) { copy.m_buckets = ArrayUtility.CopyNotNullArray(m_buckets); copy.m_entries_HashCode = ArrayUtility.CopyNotNullArray(m_entries_HashCode); copy.m_entries_Next = ArrayUtility.CopyNotNullArray(m_entries_Next); copy.m_entries_Key = ArrayUtility.CopyNotNullArray(m_entries_Key); copy.m_entries_Value = ArrayUtility.CopyNotNullArray(m_entries_Value); copy.m_bucketThreshold = m_bucketThreshold; copy.Count = Count; } return(copy); }
public BitVector(uint[] state) { m_bitArray = ArrayUtility.CopyNotNullArray(state); m_cardinalityCache = -1; m_version = 0; }