immutable class NUM_BITS < $BIT_PATTERN{NUM_BITS}


Ancestors
$BIT_PATTERN{_} $HASH $IS_EQ $IMMUTABLE
$STR $BINARY $BIT_PATTERNS QUADBITS



Public


Constants
const Big_Shift : CARD := 17 ;
**** Shifts for hashing!
const Lesser_Shift : CARD := 15 ;
****
const Magic_Prime : CARD := 4292967291 ;
**** largest prime!
const Num_Bits : CARD := QUADBITS::asize ;
const Num_Max : CARD := Quad_Max ;
const Octets_per_Card : CARD := Octets_per_Quad ;
const Octets_per_Quad : CARD := 4 ; .. Included as Octets_per_Quad
const Quad_Bits : CARD := asize ; .. Included as Quad_Bits
const Quad_Max : CARD := 0xFFFFFFFF ; .. Included as Quad_Max
const asize : CARD := 32 ; .. Included as asize
const maxnum : CARD := Quad_Max ; .. Included as maxnum

Features
aget( .. Included as aget
alter( .. Included as alter
aset( .. Included as aset
binstr : BINSTR .. Included as binstr
bit( .. Included as bit
bit_and( .. Included as bit_and
bit_invert : SAME .. Included as bit_invert
bit_or( .. Included as bit_or
bit_xor( .. Included as bit_xor
bool : BOOL .. Included as bool
build( .. Included as build
card : CARD .. Included as card
char : CHAR .. Included as char
clear( .. Included as clear
convolve( .. Included as convolve
create(str : BINSTR) : SAME .. Included as create
create( .. Included as create
create( .. Included as create
create( .. Included as create
create( .. Included as create
create( .. Included as create
create(
create : SAME .. Included as create
field : FIELD .. Included as field
hash : CARD .. Included as hash
hex_str( .. Included as hex_str
hex_str : STR .. Included as hex_str
hextet : HEXTET .. Included as hextet
highest( .. Included as highest
highest : CARD .. Included as highest
int : INT .. Included as int
is_eq( .. Included as is_eq
is_eq(other : $OB) : BOOL .. Included as is_eq
**** This is the generic equality predicate. c.f. the class $IS_EQ
left( .. Included as left
lowest( .. Included as lowest
lowest : CARD .. Included as lowest
null : SAME .. Included as null
octet : OCTET .. Included as octet
quad : QUADBITS .. Included as quad
read(index : BIN_CURSOR) : SAME .. Included as read
right( .. Included as right
set( .. Included as set
slice( .. Included as slice
slice( .. Included as slice
str( .. Included as str
str : STR .. Included as str
token : TOKEN .. Included as token
write(fyle : BIN_FILE) .. Included as write

Iters
aelt!( .. Included as aelt!
aelt!( .. Included as aelt!
aelt!( .. Included as aelt!
aelt! : T .. Included as aelt!
aind! : CARD .. Included as aind!
octet! : OCTET .. Included as octet!


Private

const Masks : ARRAY{SAME} := | create(0x1), create(0x3), .. Included as Masks
do_create( .. Included as do_create
is_legal_aelts_arg( .. Included as is_legal_aelts_arg
shift( .. Included as shift

The Sather Home Page