Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

Float-access Msgs

type: message
source files: xgbj.[ch]

SYNTAX

(SEND <gobj> :FLOAT-ADJUST-ARRAY <fix:newsize>)  ; 0 <= nex
(SEND <gobj> :FLOAT-AREF <fix:index>)            ; 0 <= Index < size
(SEND <gobj> :FLOAT-ARRAY-DIMENSION)
(SEND <gobj> :FLOAT-SETF <fix:index> <flo:val>)

DESCRIPTION

Fetch or store floats from binary segment; Get or set size-in-floats of binary segment. Valid indices are always 0 to FLOAT-ARRAY-DIMENSION -1.

EXAMPLES

(setq g (send class-gobject :new))  ; Create a gobject instance.
(send g :float-adjust-array 2))     ; Expand binary segment to two floats.
(send g :float-setf  0 5.0))        ; Set first float in segment to 5.
(send g :float-aref  0))            ; Read back first float.

Go to the first, previous, next, last section, table of contents.