SIMPOL Documentation

Chapter 57. objset

The objset is a full set implementation using binary trees to store set elements in sorted order (UNICODE order). New applications should use fastset instead, since it provides the same functionality only faster.

objset

Description

Type Tags

None

Object Value

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

objset.new()

Description

Prototype

objset.new ( objset me, string name )

Parameters

ParameterDefault valueType nameDescription
meNoneobjset
nameNonestring

Properties

PropertyTypeDescription
addelementfunction
countinteger
deleteelementfunction
differencefunction
distinctboolean
elementsobjsetelementref
findelementbykeyfunction
getcountfunction
getfirstfunction
intersectfunction
namestring
totalcountinteger
typetype
unitefunction

Methods

addelement()

Description

Prototype

objsetvar.addelement ( objset me, string key, type(*) element )

Parameters
ParameterDefault valueType nameDescription
meNoneobjset
keyNonestring
elementNonetype(*)

deleteelement()

Description

Prototype

objsetvar.deleteelement ( objset me, objsetelementref elementref )

Parameters
ParameterDefault valueType nameDescription
meNoneobjset
elementrefNoneobjsetelementref

difference()

Description

Prototype

objsetvar.difference ( objset me, objset t )

Parameters
ParameterDefault valueType nameDescription
meNoneobjset
tNoneobjset

findelementbykey()

Description

Prototype

objsetvar.findelementbykey ( objset me, string key )

Parameters
ParameterDefault valueType nameDescription
meNoneobjset
keyNonestring

getcount()

Description

Prototype

objsetvar.getcount ( objset me, string key )

Parameters
ParameterDefault valueType nameDescription
meNoneobjset
keyNonestring

getfirst()

Description

Prototype

objsetvar.getfirst ( objset me )

Parameters
ParameterDefault valueType nameDescription
meNoneobjset

intersect()

Description

Prototype

objsetvar.intersect ( objset me, objset t )

Parameters
ParameterDefault valueType nameDescription
meNoneobjset
tNoneobjset

unite()

Description

Prototype

objsetvar.unite ( objset me, objset t )

Parameters
ParameterDefault valueType nameDescription
meNoneobjset
tNoneobjset