classes.struct.private vocabulary
Factor handbook ยป Vocabulary index


Summary

Metadata
Parents:classes.struct


Words

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


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


Ordinary words
WordStack effect
(boxer-quot)( class -- quot )
(define-struct-class)( class slot-specs offsets-quot alignment-quot -- )
(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 )
define-clone-method( class -- )
define-struct-methods( class -- )
define-struct-slot-values-method( class -- )
forget-clone-method( class -- )
forget-struct-slot-accessors( 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 -- )
resize-underlying( struct -- )
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 )


Files