DataDbl2s

trait DataDbl2s[A <: ElemDbl2] extends DataDblNs[A]

A specialised immutable, flat Array[Double] based trait defined by a data sequence of a type of ElemDbl2s.

trait DataDblNs[A]
trait DataValueNs[A]
trait DataImut[A]
trait DataGen[A]
class Any
trait ArrDbl2s[A]
class MyDbl2s
class PolygonM
class Pt2s
class Vec2MArr
class LatLongs
trait LinePathDbl2s[A]
class LinePath
trait PolygonDbl2s[VT]
class PolygonLL
trait Pt2sLike

Type members

Inherited types

type ThisT <: DataDblNs[A]
Inherited from:
DataDblNs

Value members

Abstract methods

def dataElem(d1: Double, d2: Double): A

Method for creating new data elements from 2 Doubles In the case of ArrDbl2s this will be thee type of the elements of the sequence.

Method for creating new data elements from 2 Doubles In the case of ArrDbl2s this will be thee type of the elements of the sequence.

Concrete methods

def dataForeachPairTail[U](f: (Double, Double) => U): Unit
def elem1sArray: Array[Double]
def elem2sArray: Array[Double]
override def elemProdSize: Int
Definition Classes
override def indexData(index: Int): A
Definition Classes
override def unsafeSetElem(index: Int, elem: A): Unit
Definition Classes

Inherited methods

@inline
override def arrLen: Int
Definition Classes
Inherited from:
DataDblNs
def dataFold[B](initVal: B)(f: (B, A) => B): B
Inherited from:
DataGen
def dataForeach[U](f: A => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from:
DataGen
def dataIForeach[U](initIndex: Int)(f: (Int, A) => U): Unit

Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Inherited from:
DataGen
def dataIForeach[U](f: (Int, A) => Any): Unit

Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Inherited from:
DataGen
def dataLast: A
Inherited from:
DataGen
final override def dataLength: Int

The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon

The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon

Definition Classes
Inherited from:
DataValueNs
def dataLengthStr: String

Just a handy short cut to give the length of this collection as a string.

Just a handy short cut to give the length of this collection as a string.

Inherited from:
DataGen
def dataMap[B, ArrB <: SeqImut[B]](f: A => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

Specialised map to an immutable SeqImut of B. For SeqGen dataMap is the same as map, but for other structures it will be different, for example a PolygonLike will map to another PolgonLike.

Specialised map to an immutable SeqImut of B. For SeqGen dataMap is the same as map, but for other structures it will be different, for example a PolygonLike will map to another PolgonLike.

Inherited from:
DataGen
def dataTailForeach[U](f: A => U): Unit

Foreachs over the tail of the data sequence.

Foreachs over the tail of the data sequence.

Inherited from:
DataGen
def dataTailfold[B](initial: B)(f: (B, A) => B): B

foldLeft over the tail of the data sequence.

foldLeft over the tail of the data sequence.

Inherited from:
DataGen
final def elemsStr: String

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

Inherited from:
DataGen
def fElemStr: A => String
Inherited from:
DataGen
override def reverseData: ThisT
Definition Classes
Inherited from:
DataDblNs
final override def toString: String
Definition Classes
DataGen -> Any
Inherited from:
DataGen
def typeStr: String

String specifying the type of this object.

String specifying the type of this object.

Inherited from:
DataGen
def unsafeArray: Array[Double]
Inherited from:
ArrayDblBacked
def unsafeFromArray(array: Array[Double]): ThisT
Inherited from:
DataDblNs
def unsafeReverseArray: Array[Double]

Reverses the order of the elements in a new Array[Double] which is returned.

Reverses the order of the elements in a new Array[Double] which is returned.

Inherited from:
DataDblNs
final override def unsafeSameSize(length: Int): ThisT
Definition Classes
Inherited from:
DataDblNs
def unsafeSetElems(index: Int, elems: A*): Unit

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Inherited from:
DataGen