home
 
 index of namespace default
 
 index of project core
 
 index of module core

Class core.TreeNode


SynopsisAn L/R tree that can store arbitrary user data along with a String identifier.

  Base classes:
  Methods: See also:  


Method findById
Find TreeNode by id.
Signature
findById(Stringid,
  intdepth 
  )  
 :TreeNode
Arguments
Stringid
intdepth
Returns
Description

Note: It might be necessary to replace "name=" by "id=". SGML/HTML usually uses "id" to set the node id, XML uses "name" (not to be confused by type name!).

 
 top of page
Method findByName
Find TreeNode by type name
Signature
findByName(Stringname,
  intdepth 
  )  
 :TreeNode
Arguments
Stringname
intdepth
Returns

 
 top of page
Method free
Signature
free()

 
 top of page
Method getId
Signature
getId():String
Returns
String
See also:  


 
 top of page
Method getLeft
Signature
getLeft():TreeNode
Returns
See also:  


 
 top of page
Method getName
Signature
getName():String
Returns
String
See also:  


 
 top of page
Method getNumNodes
Signature
getNumNodes():int
Returns
int

 
 top of page
Method getParent
Signature
getParent():TreeNode
Returns

 
 top of page
Method getRight
Signature
getRight():TreeNode
Returns
See also:  


 
 top of page
Method getRoot
Signature
getRoot():TreeNode
Returns

 
 top of page
Method insertLeft
Insert a copy of the given object into the tree.
Signature
insertLeft(Objecto)
 :TreeNode
Arguments
Objecto
Returns
TreeNode@todo Provide script context for object clone

 
 top of page
Method insertRight
Insert a copy of the given object into the tree.
Signature
insertRight(Objecto)
 :TreeNode
Arguments
Objecto
Returns
TreeNode@todo Provide script context for object clone

 
 top of page
Method seekByPathName
Signature
seekByPathName(StringpathName)
 :TreeNode
Arguments
StringpathName
Returns

 
 top of page
Method setId
Signature
setId(Stringid)
Arguments
Stringid
See also:  


 
 top of page
Method setLeft
Signature
setLeft(TreeNoden)
Arguments
TreeNoden
See also:  


 
 top of page
Method setName
Signature
setName(Stringname)
Arguments
Stringname
See also:  


 
 top of page
Method setRight
Signature
setRight(TreeNoden)
Arguments
TreeNoden
See also:  


 
 top of page
Method writeToHashTable
Signature
writeToHashTable(HashTableht)
Arguments
HashTableht

 
 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 , List , ListNode , Long , Mailbox , Mutex , Object , ObjectArray , PakFile , PointerArray , Pool , Script , SharedBuffer , Short , Stack , StdErrStream , StdInStream , StdOutStream , 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 , mathClampf , mathClampi , mathDistancePointPlane2d , mathLerpf , mathMaxf , mathMaxi , mathMinf , mathMini , mathPowerf , mathPoweri , mathSmoothStepf , mathWrapf , mathWrapi , milliSeconds , psystem , putenv , srand , system , ucchar 
All Namespaces:default , ui 
All Projects:core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit 


auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54