eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'UnboxedFloatArray':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: UnboxedFloatArray


Inheritance:

   Object
   |
   +--Collection
      |
      +--SequenceableCollection
         |
         +--ArrayedCollection
            |
            +--UninterpretedBytes
               |
               +--AbstractNumberVector
                  |
                  +--UnboxedFloatArray
                     |
                     +--DoubleArray
                     |
                     +--FloatArray
                     |
                     +--HalfFloatArray

Package:
stx:libbasic
Category:
Collections-Arrayed
Version:
rev: 1.1 date: 2019/03/02 23:24:20
user: cg
file: UnboxedFloatArray.st directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
Claus Gittinger

Description:


An abstract superclass for all unboxed float classes.
In contrast to normal arrays (which store pointers to their elements),
unboxedFloatArrays store the values in a dense & compact way. 
Since the representation fits corresponding underlying C-language representations,
these are also useful to pass bulk data to c primitive code.


Related information:

    ByteArray
    WordArray
    BooleanArray
    FloatArray
    DoubleArray
    Array
    IntegerArray
    LongIntegerArray
    SignedLongIntegerArray

Class protocol:

queries
o  isAbstract
Return if this class is an abstract class.
True is returned for UnboxedFloatArray here; false for subclasses.
Abstract subclasses must redefine this again.


Instance protocol:

queries
o  defaultElement

o  isValidElement: anObject
return true, if I can hold this kind of object

testing
o  isFloatArray
return true if the receiver has float elements.
These are Float-, Double and HalfFloat arrays



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 16 Apr 2024 13:54:27 GMT