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.

Double-access Msgs

type: message
source files: xgbj.[ch]

SYNTAX

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

DESCRIPTION

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

EXAMPLES

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

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