ZAlgebraObjectCollection

A collection class for managing and storing multiple instances of ZAlgebraObject.

This class allows for efficient storage and manipulation of algebraic objects by organizing them in a continuous FloatArray. The data type and count of objects contained in the collection are determined upon initialization.

Constructors

Link copied to clipboard
constructor(byteDataSize: Int)

Initializes a new instance of ZAlgebraObjectCollection with a specified data size.

constructor(dataType: ZDataType, count: Int)

Secondary constructor for the ZAlgebraObjectCollection class that initializes the collection with a specified data type and count of algebraic objects.

Properties

Link copied to clipboard
open override val byteArray: ByteArray
Link copied to clipboard
open override val byteSize: Int
Link copied to clipboard
open override val count: Int

Number of individual instances this object represents

Link copied to clipboard
open override val dataType: ZDataType

The data type stored

Link copied to clipboard
open override val floatArray: FloatArray
Link copied to clipboard
open override val size: Int

Number of elements contained within the values array with the specific type defined in dataType

Functions

Link copied to clipboard

Copies all values from the specified list of ZAlgebraObject into this collection.

Link copied to clipboard
fun copyInto(offset: Int, value: ZAlgebraObject): Int

Copies the values from the specified ZAlgebraObject into the collection starting at the location defined by index.