Methods
all ( -- condition ) checks if all indexes are present in the bitset
and= ( bitset -- ) performs AND operation for all indexes with another bitset with the same maximum size
any ( -- condition ) checks if there are any indexes in the bitset
at ( index -- condition ) checks if an index is present in the bitset
clear ( -- ) clears the bitset
getSize ( -- size ) returns the maximum number of indexes in the bitset
or= ( bitset -- ) performs OR operation for all indexes with another bitset with with same maximum size
none ( -- condition ) checks if there are no indexes in the bitset
set ( value index -- ) sets a value of an index
xor= ( bitset -- ) performs XOR operation for all indexes with another bitset with the same maximum size
Free functions
and ( bitset0 bitset1 -- bitset2 ) creates a new bitset as a result of AND operation for operands
BitSet ( size -- bitset ) creates an empty bitset for a given number of indexes
copy ( bitset0 -- bitset1 ) copies a bitset
fieldCount ( bitset -- size ) returns the maximum number of indexes in a bitset
makeBitSet ( list size-- bitset ) creates a new bitset for a given number of indexes, with initial indexes enumerated in a list
or ( bitset0 bitset1 -- bitset2 ) creates a new bitset as a result of OR operation for operands
xor ( bitset0 bitset1 -- bitset2 ) creates a new bitset as a result of XOR operation for operands
@ ( index bitset -- condition ) checks if an index is present in a bitset
! ( condition index bitset -- ) sets value of an index
= ( bitset0 bitset1 -- condition ) compares bitsets
Tags
BITSET