C# Class Rhino.ObjToIntMap

ファイルを表示 Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
Get ( object key, int defaultValue ) : int

Get integer value assigned with key.

Get integer value assigned with key.

GetExisting ( object key ) : int

Get integer value assigned with key.

Get integer value assigned with key.

GetKeys ( ) : object[]

Return array of present keys

GetKeys ( object array, int offset ) : void
Has ( object key ) : bool
Intern ( object keyArg ) : object

If table already contains a key that equals to keyArg, return that key while setting its value to zero, otherwise add keyArg with 0 value to the table and return it.

If table already contains a key that equals to keyArg, return that key while setting its value to zero, otherwise add keyArg with 0 value to the table and return it.

IsEmpty ( ) : bool
NewIterator ( ) : ObjToIntMap.Iterator
ObjToIntMap ( ) : System.IO
ObjToIntMap ( int keyCountHint ) : System.IO
Put ( object key, int value ) : void
Remove ( object key ) : void
Size ( ) : int

Private Methods

Method Description
EnsureIndex ( object key ) : int
FindIndex ( object key ) : int
InitIterator ( ObjToIntMap i ) : void
InsertNewKey ( object key, int hash ) : int
ReadObject ( ObjectInputStream @in ) : void
RehashTable ( ) : void
TableLookupStep ( int fraction, int mask, int power ) : int
WriteObject ( ObjectOutputStream @out ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

Get() public method

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

GetExisting() public method

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

GetKeys() public method

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

GetKeys() public method

public GetKeys ( object array, int offset ) : void
array object
offset int
return void

Has() public method

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

Intern() public method

If table already contains a key that equals to keyArg, return that key while setting its value to zero, otherwise add keyArg with 0 value to the table and return it.
If table already contains a key that equals to keyArg, return that key while setting its value to zero, otherwise add keyArg with 0 value to the table and return it.
public Intern ( object keyArg ) : object
keyArg object
return object

IsEmpty() public method

public IsEmpty ( ) : bool
return bool

NewIterator() public method

public NewIterator ( ) : ObjToIntMap.Iterator
return ObjToIntMap.Iterator

ObjToIntMap() public method

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

ObjToIntMap() public method

public ObjToIntMap ( int keyCountHint ) : System.IO
keyCountHint int
return System.IO

Put() public method

public Put ( object key, int value ) : void
key object
value int
return void

Remove() public method

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

Size() public method

public Size ( ) : int
return int