classes.struct.private vocabulary
Factor handbook > Vocabulary index


Summary
classes.struct.private vocabulary

Words

Generic words
WordStack effect
(reader-quot)( slot -- quot )
(writer-quot)( slot -- quot )
compute-slot-offset( offset class -- offset' )


Macro words
WordStack effect
read-struct-slot( slot -- quot )
write-struct-slot( slot -- quot )


Ordinary words
WordStack effect
(boxer-quot)( class -- quot )
(define-clone-method)( class -- )
(define-struct-class)( class slot-specs offsets-quot alignment-quot -- )
(define-struct-slot-values-method)( class -- )
(struct-methods)( class -- )
(unboxer-quot)( class -- quot )
c-type-align-at( slot-spec offset -- n )
c-type-for-class( class slots size align -- c-type )
check-struct-slots( slots -- )
clone-underlying( struct -- byte-array )
compute-struct-offsets( slots -- size )
compute-union-offsets( slots -- size )
forget-clone-method( class -- )
forget-struct-slot-values-method( class -- )
init-struct( class with-prototype: ( prototype -- alien ) sans-prototype: ( class -- alien ) -- alien )
make-packed-slots( slots -- slot-specs )
make-struct-prototype( class -- prototype )
pad-struct-slots( values class -- values' class )
parse-struct-definition( -- class slots )
parse-struct-slot( -- slot )
parse-struct-slot*( accum -- accum )
parse-struct-slots( slots -- slots' more? )
parse-struct-slots*( accum -- accum more? )
peel-off-struct-attributes( slot-spec array -- slot-spec array )
redefine-struct-tuple-class( class -- )
scan-c-type*( -- c-type/param )
set-bits( slot-spec n -- slot-spec )
sign-extend( n bits -- n' )
sign-extender( signed? bits -- quot )
struct-alignment( slots -- align )
struct-needs-prototype?( class -- ? )
struct-slot-values-quot( class -- quot )