C# Class Rhino.ObjToIntMap

Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Clear ( ) : void
Résultat void

Get() public méthode

Get integer value assigned with key.
Get integer value assigned with key.
public Get ( object key, int defaultValue ) : int
key object
defaultValue int
Résultat int

GetExisting() public méthode

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

GetKeys() public méthode

Return array of present keys
public GetKeys ( ) : object[]
Résultat object[]

GetKeys() public méthode

public GetKeys ( object array, int offset ) : void
array object
offset int
Résultat void

Has() public méthode

public Has ( object key ) : bool
key object
Résultat bool

Intern() public méthode

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
Résultat object

IsEmpty() public méthode

public IsEmpty ( ) : bool
Résultat bool

NewIterator() public méthode

public NewIterator ( ) : ObjToIntMap.Iterator
Résultat ObjToIntMap.Iterator

ObjToIntMap() public méthode

public ObjToIntMap ( ) : System.IO
Résultat System.IO

ObjToIntMap() public méthode

public ObjToIntMap ( int keyCountHint ) : System.IO
keyCountHint int
Résultat System.IO

Put() public méthode

public Put ( object key, int value ) : void
key object
value int
Résultat void

Remove() public méthode

public Remove ( object key ) : void
key object
Résultat void

Size() public méthode

public Size ( ) : int
Résultat int