ValueNArrMapBuilder

ostrat.ValueNArrMapBuilder
trait ValueNArrMapBuilder[B <: ValueNElem, ArrB <: ValueNArr[B]] extends ValueNSeqLikeMapBuilder[B, ArrB] with ArrMapBuilder[B, ArrB]

Trait for creating the ArrTBuilder. 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 ArrMapBuilder[B, ArrB]
trait SeqLikeMapBuilder[B, ArrB]
class Object
trait Matchable
class Any
Known subtypes
trait DblNArrMapBuilder[B, ArrB]
trait Dbl2ArrMapBuilder[B, ArrB]
trait Dbl3ArrMapBuilder[B, ArrB]
trait Dbl4ArrMapBuilder[B, ArrB]
trait Dbl5ArrMapBuilder[B, ArrB]
trait Dbl6ArrMapBuilder[B, ArrB]
trait IntNArrMapBuilder[B, ArrB]
trait Int1ArrMapBuilder[A, ArrT]
trait Int2ArrMapBuilder[B, ArrB]
trait Int3ArrMapBuilder[B, ArrB]
trait Int4ArrMapBuilder[B, ArrB]
trait Int5ArrMapBuilder[B, ArrB]
trait Int6ArrMapBuilder[B, ArrB]

Members list

Concise view

Type members

Types

type BuffT <: ValueNBuff[B]

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

Inherited methods

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

Attributes

Inherited from:
ArrMapBuilder
def buffGrow(buff: BuffT, newElem: B): 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

Inherited from:
SeqLikeMapBuilder
def buffGrowIter(buff: BuffT, newElems: Iterable[B]): 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
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

Inherited from:
SeqLikeCommonBuilder

Attributes

Inherited from:
ValueNSeqLikeCommonBuilder
def indexSet(seqLike: ArrB, index: Int, elem: B): 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

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

Attributes

Inherited from:
ArrMapBuilder
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

Inherited from:
SeqLikeCommonBuilder
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

Inherited from:
SeqLikeMapBuilder