Property | Type | Description | |
---|---|---|---|
_buckets | Bucket[] |
Method | Description | |
---|---|---|
Add ( IronPython.Runtime.DictionaryStorage &storage, object key, object value ) : void | ||
Add ( object key, object value ) : void |
Adds a new item to the dictionary, replacing an existing one if it already exists.
|
|
AddNoLock ( IronPython.Runtime.DictionaryStorage &storage, object key, object value ) : void | ||
AddNoLock ( object key, object value ) : void | ||
Clear ( ) : void | ||
Clear ( IronPython.Runtime.DictionaryStorage &storage ) : void |
Clears the contents of the dictionary.
|
|
Clone ( ) : IronPython.Runtime.DictionaryStorage |
Clones the storage returning a new DictionaryStorage object.
|
|
CommonDictionaryStorage ( ) : System |
Creates a new dictionary storage with no buckets
|
|
CommonDictionaryStorage ( int count ) : System |
Creates a new dictionary storage with no buckets
|
|
CommonDictionaryStorage ( object items, bool isHomogeneous ) : System |
Creates a new dictionary geting values/keys from the items arary
|
|
Contains ( object key ) : bool |
Checks to see if the key exists in the dictionary.
|
|
CopyTo ( IronPython.Runtime.DictionaryStorage into ) : IronPython.Runtime.DictionaryStorage | ||
CopyTo ( IronPython.Runtime.DictionaryStorage &into ) : void | ||
EnsureCapacityNoLock ( int size ) : void | ||
GetEnumerator ( ) : object>>.IEnumerator |
||
GetItems ( ) : object>>.List |
||
GetKeys ( ) : IEnumerable | ||
GetObjectData ( |
||
HasNonStringAttributes ( ) : bool | ||
Remove ( IronPython.Runtime.DictionaryStorage &storage, object key ) : bool |
Removes an entry from the dictionary and returns true if the entry was removed or false.
|
|
Remove ( object key ) : bool | ||
TryGetValue ( object key, object &value ) : bool |
Trys to get the value associated with the given key and returns true if it's found or false if it's not present.
|
|
TryRemoveValue ( IronPython.Runtime.DictionaryStorage &storage, object key, object &value ) : bool | ||
TryRemoveValue ( object key, object &value ) : bool |
Method | Description | |
---|---|---|
AddWorker ( Bucket buckets, object key, object value, int hc ) : bool |
Add helper which adds the given key/value (where the key is not null) with a pre-computed hash code.
|
|
IDeserializationCallback ( object sender ) : void | ||
TryGetValue ( Bucket buckets, object key, int hc, Func eqFunc, object &value ) : bool | ||
TryRemoveNoLock ( object key, Func eqFunc, int hc, object &value ) : bool |
Method | Description | |
---|---|---|
Add ( Bucket buckets, object key, object value ) : bool |
Add helper that works over a single set of buckets. Used for both the normal add case as well as the resize case.
|
|
AddItems ( object items ) : void | ||
AddNull ( object value ) : void | ||
AddOne ( object key, object value ) : void | ||
AssignSiteDelegates ( CallSite |
||
CommonCopyTo ( |
||
CommonDictionaryStorage ( Bucket buckets, int count, |
Creates a new dictionary storage with the given set of buckets and size. Used when cloning the dictionary storage.
|
|
CommonDictionaryStorage ( |
||
DoubleEquals ( object o1, object o2 ) : bool | ||
DoubleHash ( object o ) : int | ||
EnsureSize ( int newSize ) : void | ||
GenericEquals ( object o1, object o2 ) : bool | ||
GenericHash ( object o ) : int | ||
GetDeserializationBucket ( ) : DeserializationNullValue | ||
Hash ( object key ) : int |
Helper to hash the given key w/ support for null.
|
|
Initialize ( ) : void |
Initializes the buckets to their initial capacity, the caller must check if the buckets are empty first.
|
|
IntEquals ( object o1, object o2 ) : bool | ||
IntHash ( object o ) : int | ||
PrimitiveHash ( object o ) : int | ||
ProbeNext ( Bucket buckets, int index ) : int | ||
RemoveAlwaysHash ( object key ) : bool |
Removes an entry from the dictionary and returns true if the entry was removed or false. The key will always be hashed so if it is unhashable an exception will be thrown - even if the dictionary has no buckets.
|
|
SetHeterogeneousSites ( ) : void | ||
StringEquals ( object o1, object o2 ) : bool | ||
TryGetValue ( Bucket buckets, object key, object &value ) : bool |
Static helper to try and get the value from the dictionary. Used so the value lookup can run against a buckets while a writer replaces the buckets.
|
|
TryRemoveNoLock ( object key, object &value ) : bool | ||
TryRemoveNull ( object &value ) : bool | ||
TupleEquals ( object o1, object o2 ) : bool | ||
TupleHash ( object o ) : int | ||
UncommonCopyTo ( IronPython.Runtime.DictionaryStorage &into ) : void | ||
UpdateHelperFunctions ( |
public Add ( IronPython.Runtime.DictionaryStorage &storage, object key, object value ) : void | ||
storage | IronPython.Runtime.DictionaryStorage | |
key | object | |
value | object | |
return | void |
public Add ( object key, object value ) : void | ||
key | object | |
value | object | |
return | void |
public AddNoLock ( IronPython.Runtime.DictionaryStorage &storage, object key, object value ) : void | ||
storage | IronPython.Runtime.DictionaryStorage | |
key | object | |
value | object | |
return | void |
public AddNoLock ( object key, object value ) : void | ||
key | object | |
value | object | |
return | void |
protected AddWorker ( Bucket buckets, object key, object value, int hc ) : bool | ||
buckets | Bucket | |
key | object | |
value | object | |
hc | int | |
return | bool |
public Clear ( IronPython.Runtime.DictionaryStorage &storage ) : void | ||
storage | IronPython.Runtime.DictionaryStorage | |
return | void |
public Clone ( ) : IronPython.Runtime.DictionaryStorage | ||
return | IronPython.Runtime.DictionaryStorage |
public CommonDictionaryStorage ( int count ) : System | ||
count | int | |
return | System |
public CommonDictionaryStorage ( object items, bool isHomogeneous ) : System | ||
items | object | |
isHomogeneous | bool | |
return | System |
public CopyTo ( IronPython.Runtime.DictionaryStorage into ) : IronPython.Runtime.DictionaryStorage | ||
into | IronPython.Runtime.DictionaryStorage | |
return | IronPython.Runtime.DictionaryStorage |
public CopyTo ( IronPython.Runtime.DictionaryStorage &into ) : void | ||
into | IronPython.Runtime.DictionaryStorage | |
return | void |
public EnsureCapacityNoLock ( int size ) : void | ||
size | int | |
return | void |
public GetEnumerator ( ) : object>>.IEnumerator |
||
return | object>>.IEnumerator |
public GetObjectData ( |
||
info | ||
context | ||
return | void |
protected IDeserializationCallback ( object sender ) : void | ||
sender | object | |
return | void |
public Remove ( IronPython.Runtime.DictionaryStorage &storage, object key ) : bool | ||
storage | IronPython.Runtime.DictionaryStorage | |
key | object | |
return | bool |
protected static TryGetValue ( Bucket buckets, object key, int hc, Func |
||
buckets | Bucket | |
key | object | |
hc | int | |
eqFunc | Func |
|
value | object | |
return | bool |
public TryGetValue ( object key, object &value ) : bool | ||
key | object | |
value | object | |
return | bool |
protected TryRemoveNoLock ( object key, Func |
||
key | object | |
eqFunc | Func |
|
hc | int | |
value | object | |
return | bool |
public TryRemoveValue ( IronPython.Runtime.DictionaryStorage &storage, object key, object &value ) : bool | ||
storage | IronPython.Runtime.DictionaryStorage | |
key | object | |
value | object | |
return | bool |
public TryRemoveValue ( object key, object &value ) : bool | ||
key | object | |
value | object | |
return | bool |