C# Class Rhino.UintMap

Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
GetExistingInt ( int key ) : int

Get integer value assigned with key.

Get integer value assigned with key.

GetInt ( int key, int defaultValue ) : int

Get integer value assigned with key.

Get integer value assigned with key.

GetKeys ( ) : int[]

Return array of present keys

GetObject ( int key ) : object

Get object value assigned with key.

Get object value assigned with key.

Has ( int key ) : bool
IsEmpty ( ) : bool
Put ( int key, int value ) : void

Set int value of the key.

Set int value of the key. If key does not exist, also set its object value to null.

Put ( int key, object value ) : void

Set object value of the key.

Set object value of the key. If key does not exist, also set its int value to 0.

Remove ( int key ) : void
Size ( ) : int
UintMap ( ) : System.IO
UintMap ( int initialCapacity ) : System.IO

Private Methods

Method Description
EnsureIndex ( int key, bool intType ) : int
FindIndex ( int key ) : int
InsertNewKey ( int key ) : int
ReadObject ( ObjectInputStream @in ) : void
RehashTable ( bool ensureIntSpace ) : void
TableLookupStep ( int fraction, int mask, int power ) : int
WriteObject ( ObjectOutputStream @out ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

GetExistingInt() public method

Get integer value assigned with key.
Get integer value assigned with key.
if key does not exist
public GetExistingInt ( int key ) : int
key int
return int

GetInt() public method

Get integer value assigned with key.
Get integer value assigned with key.
public GetInt ( int key, int defaultValue ) : int
key int
defaultValue int
return int

GetKeys() public method

Return array of present keys
public GetKeys ( ) : int[]
return int[]

GetObject() public method

Get object value assigned with key.
Get object value assigned with key.
public GetObject ( int key ) : object
key int
return object

Has() public method

public Has ( int key ) : bool
key int
return bool

IsEmpty() public method

public IsEmpty ( ) : bool
return bool

Put() public method

Set int value of the key.
Set int value of the key. If key does not exist, also set its object value to null.
public Put ( int key, int value ) : void
key int
value int
return void

Put() public method

Set object value of the key.
Set object value of the key. If key does not exist, also set its int value to 0.
public Put ( int key, object value ) : void
key int
value object
return void

Remove() public method

public Remove ( int key ) : void
key int
return void

Size() public method

public Size ( ) : int
return int

UintMap() public method

public UintMap ( ) : System.IO
return System.IO

UintMap() public method

public UintMap ( int initialCapacity ) : System.IO
initialCapacity int
return System.IO