Packageorg.si.utils
Classpublic class SLLint
InheritanceSLLint Inheritance Object

Singly linked list of int.



Public Properties
 PropertyDefined By
  i : int = 0
int data
SLLint
  next : SLLint = null
Next pointer of list
SLLint
Public Methods
 MethodDefined By
  
SLLint(i:int = 0)
Constructor
SLLint
  
alloc(i:int = 0):SLLint
[static] Allocator
SLLint
  
allocList(size:int, defaultData:int = 0):SLLint
[static] Allocator of linked list
SLLint
  
allocRing(size:int, defaultData:int = 0):SLLint
[static] Allocator of ring-linked list
SLLint
  
createListPager(firstElem:SLLint, fixedSize:Boolean):Vector.<SLLint>
[static] Create pager of linked list
SLLint
  
createRingPager(firstElem:SLLint, fixedSize:Boolean):Vector.<SLLint>
[static] Create pager of ring-linked list
SLLint
  
free(elem:SLLint):void
[static] Deallocator
SLLint
  
freeList(firstElem:SLLint):void
[static] Deallocator of linked list
SLLint
  
freeRing(firstElem:SLLint):void
[static] Deallocator of ring-linked list
SLLint
  
newRing(... args):SLLint
[static] Ring-linked list with initial values.
SLLint
Property Detail
iproperty
public var i:int = 0

int data

nextproperty 
public var next:SLLint = null

Next pointer of list

Constructor Detail
SLLint()Constructor
public function SLLint(i:int = 0)

Constructor

Parameters
i:int (default = 0)
Method Detail
alloc()method
public static function alloc(i:int = 0):SLLint

Allocator

Parameters

i:int (default = 0)

Returns
SLLint
allocList()method 
public static function allocList(size:int, defaultData:int = 0):SLLint

Allocator of linked list

Parameters

size:int
 
defaultData:int (default = 0)

Returns
SLLint
allocRing()method 
public static function allocRing(size:int, defaultData:int = 0):SLLint

Allocator of ring-linked list

Parameters

size:int
 
defaultData:int (default = 0)

Returns
SLLint
createListPager()method 
public static function createListPager(firstElem:SLLint, fixedSize:Boolean):Vector.<SLLint>

Create pager of linked list

Parameters

firstElem:SLLint
 
fixedSize:Boolean

Returns
Vector.<SLLint>
createRingPager()method 
public static function createRingPager(firstElem:SLLint, fixedSize:Boolean):Vector.<SLLint>

Create pager of ring-linked list

Parameters

firstElem:SLLint
 
fixedSize:Boolean

Returns
Vector.<SLLint>
free()method 
public static function free(elem:SLLint):void

Deallocator

Parameters

elem:SLLint

freeList()method 
public static function freeList(firstElem:SLLint):void

Deallocator of linked list

Parameters

firstElem:SLLint

freeRing()method 
public static function freeRing(firstElem:SLLint):void

Deallocator of ring-linked list

Parameters

firstElem:SLLint

newRing()method 
public static function newRing(... args):SLLint

Ring-linked list with initial values.

Parameters

... args

Returns
SLLint