class-instances-count |
| [Generic Function] |
Purpose
Obtain the current count of unit instances of a
unit class.
Method signatures
( unit-class-name symbol)
=> count
|
( unit-class-specifier cons)
=> count
|
( unit-class standard-unit-class)
=> count
|
Package :gbbopen
Module :gbbopen-core
Arguments and values
unit-class-or-name | A unit class or a symbol naming a unit class | |
count | An integer |
Returns
The count of unit instances of the
specified unit class. If an
extended unit-classes specification is supplied, the sum of the
unit instance counts of the specified classes is returned.
See also
next-class-instance-number
Examples
Return the count of unit instances of
standard-space-instance
> (class-instances-count 'standard-space-instance) 8 >Return the count of all space instance:
> (class-instances-count '(standard-space-instance :plus-subclasses)) 14 >or simply:
> (class-instances-count '(standard-space-instance +)) 14 >
The GBBopen Project
class-instances-count |