DataImut

trait DataImut[+A] extends DataGen[A]

Base trait for all immutable classes that use a backing Array for efficient storage. This includes immutable sequences ArrBase, but also polygons and line paths that are specified by data sequences.

trait DataGen[A]
class Any
trait ArrBase[A]
class Arr[A]
trait ArrArrayDbl[A]
trait ArrValueNs[A]
trait ArrDblNs[A]
trait ArrDbl1s[A]
class Angles
trait ArrDbl2s[A]
class MyDbl2s
class LatLongs
class Pt2s
class Vec2MArr
trait ArrDbl3s[A]
class Pt3s
trait ArrDbl4s[A]
class LineSegs
trait ArrDbl5s[A]
trait ArrDbl6s[A]
trait ArrDbl7s[A]
trait ArrIntNs[A]
trait ArrInt1s[A]
class Colours
class HSteps
trait ArrInt2s[A]
class Coods
class Roords
class HCens
class HCoords
class HSides
class HVerts
trait ArrInt4s[A]
class CoodLines
trait ArrLongNs[A]
trait ArrLong1s[A]
class Booleans
class Chars
class Dbls
class Floats
class Ints
class Longs
class Strings
trait DataValueNs[A]
trait DataDblNs[A]
trait DataDbl2s[A]
class PolygonLL
trait LinePathDbl2s[A]
class LinePath
trait PolygonDbl2s[VT]
trait Pt2sLike
trait DataDbl3s[A]
trait LinePathDbl3s[A]
trait PolygonDbl3s[VT]
trait DataDbl4s[A]
trait DataDbl5s[A]
trait DataDbl6s[A]
trait DataDbl7s[A]
trait LinePathDblNs[A]
trait PolygonDblNs[VT]
trait DataIntNs[A]
trait DataInt1s[A]
trait DataInt2s[A]
trait PolygonInt2s[VT]
class PolygonHC
trait PolygonIntNs[VT]
trait LinePathLike[A]
trait PolygonValueN[VT]

Type members

Types

type ThisT <: DataImut[A]

Value members

Abstract methods

def unsafeSameSize(length: Int): ThisT

This method should rarely be needed to be used by end users, but returns a new uninitialised ArrT of the this ArrBase's final type.

This method should rarely be needed to be used by end users, but returns a new uninitialised ArrT of the this ArrBase's final type.

Inherited methods

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](f: (A, Int) => 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 dataLast: A
Inherited from
DataGen
def dataMap[B, ArrB <: ArrBase[B]](f: A => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

Specialised map to an immutable ArrBase of B.

Specialised map to an immutable ArrBase of B.

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
def elemsLenStr: 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 elemsNum: Int

The number of elements in the collection. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array will be this number or a multiple of this number.

The number of elements in the collection. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array will be this number or a multiple of this number.

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
@inline
def indexData(index: Int): A

apply method accesses the individual elements of the sequence by 0 based index.

apply method accesses the individual elements of the sequence by 0 based index.

Inherited from
DataGen
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 unsafeSetElem(i: Int, value: A): Unit

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

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

Inherited from
DataGen
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