G-Golf class, accessors, methods and procedures to deal with C flags types.
G-Golf class, accessors, methods and procedures to deal with C flags types.
The <gi-flags>
class is a subclass of <flags>
. Its
class-direct-slots
are:
g-type
#:accessor !g-type
#:init-keyword #:g-type
#:init-value #fg-name
#:accessor !g-name
#:init-keyword #:g-namename
#:accessor !name
The name
slot is automatically initialized.
Instances of the <gi-flags>
class are immutable (to be precise,
there are not meant to be mutated, see GOOPS Notes and Conventions, ’Slots are not Immutable’).
Returns a possibly empty) list of symbol(s).
Obtains and returns the list of (symbol) flags for the given
<flags>
instance and its integer representation n.
Returns an integer.
Compute and returns the integer representation for the list of
(symbol(s)) given by flags and the given <flag>
instance.