LinePathBuilder

trait LinePathBuilder[B <: ElemValueN, BB <: LinePathLike[B]] extends DataBuilder[B, BB]

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.

trait DataBuilder[B, BB]
class Object
trait Matchable
class Any

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: BB, index: Int, value: B): Unit
def newArr(length: Int): BB

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): BB

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: BB): 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): BB

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