BuilderMapArrValueN

ostrat.BuilderMapArrValueN
trait BuilderMapArrValueN[B <: ValueNElem, ArrB <: ArrValueN[B]] extends BuilderMapSeqLikeValueN[B, ArrB], BuilderArrMap[B, ArrB]

BuilderMap trait for creating Arr classes with ValueNElems via the map method. Instances for the BuilderArrMap 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 BuilderArrMap[B, ArrB]
trait BuilderMapSeqLikeValueN[B, ArrB]
trait BuilderMapSeqLike[B, ArrB]
trait BuilderMap[B, ArrB]
trait BuilderSeqLikeValueN[ArrB]
trait BuilderSeqLike[ArrB]
trait BuilderBoth[ArrB]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait BuilderArrDblNMap[B, ArrB]
trait BuilderArrDbl4Map[B, ArrB]
trait BuilderMapArrDbl2[B, ArrB]
trait BuilderMapArrDbl3[B, ArrB]
trait BuilderMapArrDbl5[B, ArrB]
trait BuilderMapArrDbl6[B, ArrB]
trait BuilderArrIntNMap[B, ArrB]
trait BuilderMapArrInt1[A, ArrT]
trait BuilderMapArrInt2[B, ArrB]
trait BuilderMapArrInt3[B, ArrB]
trait BuilderMapArrInt4[B, ArrB]
trait BuilderMapArrInt5[B, ArrB]
trait BuilderMapArrInt6[B, ArrB]
Show all

Members list

Type members

Types

type BuffT <: BuffValueN[B]

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

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

Attributes

Value members

Inherited methods

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

Attributes

Inherited from:
BuilderArrMap
def buffGrowIter(buff: BuffT, newElems: Iterable[B]): Unit

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

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

Attributes

Inherited from:
BuilderMapSeqLike
override def empty: ArrB

Creates a new empty SeqLike of type BB.

Creates a new empty SeqLike of type BB.

Attributes

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

Attributes

Inherited from:
BuilderArrMap

Inherited and Abstract methods

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:
BuilderMap
def buffToSeqLike(buff: BuffT): ArrB

converts a buffer of the given type to the target compound class.

converts a buffer of the given type to the target compound class.

Attributes

Inherited from:
BuilderBoth

Attributes

Inherited from:
BuilderSeqLikeValueN
def indexSet(seqLike: ArrB, index: Int, newElem: 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:
BuilderMapSeqLike
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:
BuilderBoth
def uninitialised(length: Int): ArrB

Creates a new uninitialised SeqLike of type BB of the given length.

Creates a new uninitialised SeqLike of type BB of the given length.

Attributes

Inherited from:
BuilderMapSeqLike