ArrBuilder

trait ArrBuilder[B, ArrB <: ArrBase[B]] extends DataBuilder[B, ArrB]

A type class for the building of efficient compact Immutable Arrays. Instances for this type class for classes / traits you control should go in the companion object of B not the companion object of BB. This is different from the related ArrBinder[BB] type class where instance should go into the BB companion object. The type parameter is named B rather than A, because normally this will be found by an implicit in the context of a function from A => B or A => M[B]. The methods of this trait mutate and therefore must be used with care. Where ever possible they should not be used directly by end users.

Companion
object
trait DataBuilder[B, ArrB]
trait DataBuilderCommon[ArrB]
class Object
trait Matchable
class Any
class AnyBuild[B]
trait ArrArrayDblBuild[A, ArrT]
trait ArrValueNsBuilder[B, ArrB]
trait ArrDblNsBuilder[B, ArrB]
trait ArrDbl2sBuilder[B, ArrB]
trait ArrDbl3sBuilder[B, ArrB]
trait ArrDbl4sBuilder[B, ArrB]
trait ArrIntNsBuilder[B, ArrB]
trait ArrInt1sBuilder[A, ArrT]
trait ArrInt2sBuilder[B, ArrB]
object DblsBuild
object IntsBuild
object LongsBuild

Type members

Inherited types

type BuffT <: SeqGen[B]

The type of the buffer used for building the target compound class BB.

The type of the buffer used for building the target compound class BB.

Inherited from
DataBuilder

Value members

Abstract methods

def arrSet(arr: ArrB, index: Int, value: B): Unit
def newArr(length: Int): ArrB

Concrete methods

def buffContains(buff: BuffT, newElem: B): Boolean
def buffGrowIter(buff: BuffT, values: 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.

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

Inherited methods

def buffGrow(buff: BuffT, value: 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.

Inherited from
DataBuilder
def buffGrowArr(buff: BuffT, arr: ArrB): Unit

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

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

Inherited from
DataBuilder
def buffToBB(buff: BuffT): ArrB

converts a the buffer type to the target compound class.

converts a the buffer type to the target compound class.

Inherited from
DataBuilderCommon
def newBuff(length: Int): BuffT
Inherited from
DataBuilderCommon