Int1ArrMapBuilder

ostrat.Int1ArrMapBuilder
trait Int1ArrMapBuilder[A <: ElemInt1, ArrT <: Int1Arr[A]] extends Int1ArrCommonBuilder[ArrT] with IntNArrMapBuilder[A, ArrT]

Trait for creating the ArrTBuilder type class instances for Int1Arr final classes. Instances for the ArrMapBuilder type class, for classes / traits you control, should go in the companion object of B. The first type parameter is called B, because to corresponds to the B in map(f: A => B): ArrB function.

Attributes

Graph
Supertypes
trait IntNArrMapBuilder[A, ArrT]
trait ValueNArrMapBuilder[A, ArrT]
trait ArrMapBuilder[A, ArrT]
trait IntNSeqLikeMapBuilder[A, ArrT]
trait SeqLikeMapBuilder[A, ArrT]
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

type BuffT <: Int1Buff[A]

BuffT can be inbuilt Jvm type like ArrayBuffer[Int] for B = Int and BB = Ints, or it can be a compile time wrapped Arraybuffer inheriting from BuffProdHomo.

BuffT can be inbuilt Jvm type like ArrayBuffer[Int] for B = Int and BB = Ints, or it can be a compile time wrapped Arraybuffer inheriting from BuffProdHomo.

Attributes

Value members

Concrete methods

final override def buffGrow(buff: BuffT, value: A): Unit

A mutable operation that extends the ArrayBuffer by a single element of type B.

A mutable operation that extends the ArrayBuffer by a single element of type B.

Attributes

Definition Classes
final override def indexSet(seqLike: ArrT, index: Int, value: A): Unit

Sets the value in a SeqLike of type BB. This is usually used in conjunction with uninitialised method.

Sets the value in a SeqLike of type BB. This is usually used in conjunction with uninitialised method.

Attributes

Definition Classes

Inherited methods

def buffContains(buff: BuffT, newElem: A): Boolean

Attributes

Inherited from:
ArrMapBuilder
def buffGrowIter(buff: BuffT, values: Iterable[A]): Unit

A mutable operation that extends the ArrayBuffer with the elements of the Iterable operand.

A mutable operation that extends the ArrayBuffer with the elements of the Iterable operand.

Attributes

Inherited from:
SeqLikeMapBuilder
final override def buffToSeqLike(buff: BuffT): BB

converts a the buffer type to the target compound class.

converts a the buffer type to the target compound class.

Attributes

Definition Classes
Inherited from:
IntNSeqLikeMapBuilder
final override def elemProdSize: Int

Attributes

Definition Classes
Inherited from:
Int1ArrCommonBuilder
def fromIntArray(array: Array[Int]): BB

Attributes

Inherited from:
IntNSeqLikeCommonBuilder

Attributes

Inherited from:
IntNSeqLikeCommonBuilder
def iterMap[A](inp: Iterable[A], f: A => A): ArrB

Attributes

Inherited from:
ArrMapBuilder
final override def newBuff(length: Int): BuffT

Creates a new empty Buff with a default capacity of 4 elements.

Creates a new empty Buff with a default capacity of 4 elements.

Attributes

Definition Classes
Inherited from:
IntNSeqLikeCommonBuilder
final override def uninitialised(length: Int): BB

Creates a new uninitialised Arr of type ArrB of the given length.

Creates a new uninitialised Arr of type ArrB of the given length.

Attributes

Definition Classes
Inherited from:
IntNSeqLikeMapBuilder