→ index of namespace default
 
→ index of project core
 
→ index of module core

Class core.HashTable


Synopsis: A dictionary that maps Strings to arbitrary values.

  Methods:

Method addFloat
Signature
addFloat(Stringkey,
  floatf 
  )  
 :int
Arguments
Stringkey–
floatf–
Returns
int–

 
→ top of page
Method addInt
Signature
addInt(Stringkey,
  inti 
  )  
 :int
Arguments
Stringkey–
inti–
Returns
int–

 
→ top of page
Method addObject
Signature
addObject(Stringkey,
  Objecto 
  )  
 :int
Arguments
Stringkey–
Objecto–
Returns
int–

 
→ top of page
Method addObjectRef
Signature
addObjectRef(Stringkey,
  Valuev 
  )  
 :int
Arguments
Stringkey–
Valuev–
Returns
int–

 
→ top of page
Method addString
Signature
addString(Stringkey,
  Strings 
  )  
 :int
Arguments
Stringkey–
Strings–
Returns
int–

 
→ top of page
Method alloc
Set new capacity and discard all entries.
Signature
alloc(intcacheSize)
 :boolean
Arguments
intcacheSize–
Returns
boolean–

See also:  


 
→ top of page
Method delete
Signature
delete(Stringkey)
Arguments
Stringkey–

 
→ top of page
Method empty
Free cache entries but not the entry array itself (keep maxElements)
Signature
empty()

See also:  


 
→ top of page
Method exists
Signature
exists(Stringkey)
 :boolean
Arguments
Stringkey–
Returns
boolean–

 
→ top of page
Method free
Signature
free()

See also:  


 
→ top of page
Method get
Signature
get(Stringkey)
 :var
Arguments
Stringkey–
Returns
var–

 
→ top of page
Method getDeref
Signature
getDeref(Stringkey)
 :var
Arguments
Stringkey–
Returns
var–

 
→ top of page
Method getMaxElements
Signature
getMaxElements():int
Returns
int–

 
→ top of page
Method getNumElements
Signature
getNumElements():int
Returns
int–

 
→ top of page
Method getReparsableString
Prepare keys and string values so they can be reparsed.
Signature
getReparsableString():String
Returns
String–
Description

Mostly usuable for generating script source code.

 
→ top of page
Method getString
Signature
getString():String
Returns
String–

 
→ top of page
Method isEmpty
Return true if hash table has no entries.
Signature
isEmpty()

See also:  


 
→ top of page
Method keyToArray
Signature
keyToArray(Objectarray)
 :int
Arguments
Objectarray–
Returns
int–

 
→ top of page
Method realloc
Set new capacity while keeping current entries.
Signature
realloc(intcacheSize)
 :boolean
Arguments
intcacheSize–
Returns
boolean–

See also:  


 
→ top of page
Method replaceKey
Signature
replaceKey(StringoldKey,
  StringnewKey 
  )  
 :boolean
Arguments
StringoldKey–
StringnewKey–
Returns
boolean–true if key has been replaced

 
→ top of page
Method set
Signature
set(Stringkey,
  Objectvalue 
  )  
Arguments
Stringkey–
Objectvalue–

 
→ top of page
Method setCopy
Signature
setCopy(Stringkey,
  Objecto 
  )  
Arguments
Stringkey–
Objecto–

 
→ top of page
Method setFloat
Signature
setFloat(Stringkey,
  floatf 
  )  
Arguments
Stringkey–
floatf–

 
→ top of page
Method setInt
Signature
setInt(Stringkey,
  inti 
  )  
Arguments
Stringkey–
inti–

 
→ top of page
Method setObject
Signature
setObject(Stringkey,
  Objectvalue 
  )  
Arguments
Stringkey–
Objectvalue–

 
→ top of page
Method setString
Signature
setString(Stringkey,
  Strings 
  )  
Arguments
Stringkey–
Strings–

 
→ top of page
Method valuesToArray
Signature
valuesToArray(Objectarray)
 :int
Arguments
Objectarray–
Returns
int–

 
→ top of page
 

Project Modules:core 
Project Classes:Boolean , Buffer , Byte , Class , ClassArray , Condition , Configuration , Double , DummyStream , Envelope , Event , Exception , File , Float , FloatArray , FloatArray128 , FloatArray16 , FloatArray32 , FloatArray64 , FloatArray8 , Function , HashTable , IntArray , IntArray128 , IntArray16 , IntArray32 , IntArray64 , IntArray8 , Integer , LFSR , LFSR_NR , List , ListNode , Long , Mailbox , Mutex , Object , ObjectArray , PakFile , PointerArray , Pool , Process , Script , SharedBuffer , Short , Stack , StdErrStream , StdInStream , StdOutStream , Stream , Stream , String , String128 , String16 , String32 , String64 , String8 , StringArray , StringIterator , Thread , Time , TKS , TreeNode , UnsignedByte , UnsignedInteger , UnsignedLong , UnsignedShort , Value , ValueArray , Variable 
Project Functions:ceil , exit , floor , GetCurrentThread , getenv , lcchar , mathAbsMaxf , mathAbsMinf , mathAbsMini , mathAbsMini , mathCerpf , mathClampf , mathClampi , mathDistancePointPlane2d , mathFoldf , mathFoldi , mathGCD , mathLerpCyclicf , mathLerpf , mathMaxf , mathMaxi , mathMinf , mathMini , mathNextCyclicf , mathPowerf , mathPowerfC , mathPoweri , mathSerpf , mathSigmoidf , mathSmoothStepf , mathSmoothStepNf , mathWrapf , mathWrapi , milliSeconds , milliSecondsDouble , psystem , putenv , srand , system , ucchar 
All Namespaces:default , graph , ui 
All Projects:core , eqxmms , ShaderVG , ShaderVG_Text , tkanalogrytm , tkchipmunk , tkclap , tkfileutils , tkfreeglut , tkfreetype2 , tkfreeverb , tkmath , tkmidi , tkmidipipe , tkminnie , tkoldmath , tkopengl , tkportaudio , tkradiastools , tksamplechain , tksampleedit , tksampler , tksdl , tksdl_net , tksidplay2 , tkspeexdsp , tksqlite , tktriangulate , tkui , tkvst2 , tkzip , ui , yingtest 


auto-generated by "DOG", the TkScript document generator. Sun, 4/Oct/2026 11:15:07