SIMPOL Documentation

stack

Description

Type Tags

None

Object Value

Objects of type stack have no value, and it is an error to try to get or set this value.

stack.new()

Description

Prototype

stack.new ( stack me, integer max )

Parameters

ParameterDefault valueType nameDescription
meNonestack
max.infinteger

Properties

PropertyTypeDescription
_type(*)
__type(*)
_privatestackprivate
clearfunction
getcountfunction
getnextitemfunction
gettopitemfunction
isemptyfunction
popfunction
pushfunction
typetype

Methods

clear()

Description

Prototype

stackvar.clear ( stack me )

Parameters
ParameterDefault valueType nameDescription
meNonestack

getcount()

Description

Prototype

stackvar.getcount ( stack me )

Parameters
ParameterDefault valueType nameDescription
meNonestack

getnextitem()

Description

Prototype

stackvar.getnextitem ( stack me, type(*) searchitem )

Parameters
ParameterDefault valueType nameDescription
meNonestack
searchitemNonetype(*)

gettopitem()

Description

Prototype

stackvar.gettopitem ( stack me )

Parameters
ParameterDefault valueType nameDescription
meNonestack

isempty()

Description

Prototype

stackvar.isempty ( stack me )

Parameters
ParameterDefault valueType nameDescription
meNonestack

pop()

Description

Prototype

stackvar.pop ( stack me )

Parameters
ParameterDefault valueType nameDescription
meNonestack

push()

Description

Prototype

stackvar.push ( stack me, type(*) item )

Parameters
ParameterDefault valueType nameDescription
meNonestack
itemNonetype(*)