PairArrMapBuilder

ostrat.PairArrMapBuilder
trait PairArrMapBuilder[B1, ArrB1 <: Arr[B1], B2, B <: ElemPair[B1, B2], ArrB <: PairArr[B1, ArrB1, B2, B]] extends PairArrCommonBuilder[B1, ArrB1, B2, ArrB] with ArrMapBuilder[B, ArrB]

Builder for ElemPairs. As with all builders, we use B as the type parameter, because builders are nearly always used with some kind of map / flatMap methods where B corresponds to the map function f: A => B.

Attributes

Graph
Supertypes
trait ArrMapBuilder[B, ArrB]
trait SeqLikeMapBuilder[B, ArrB]
trait PairArrCommonBuilder[B1, ArrB1, B2, ArrB]
class Object
trait Matchable
class Any
Known subtypes
trait DblNPairArrMapBuilder[B1, ArrB1, B2, B, ArrB]
trait Dbl2PairArrMapBuilder[B1, ArrB1, B2, B, ArrB]
trait Dbl3PairArrMapBuilder[B1, ArrB1, B2, B, ArrB]
trait Dbl4PairArrMapBuilder[B1, ArrB1, B2, B, ArrB]
trait IntNPairArrMapBuilder[B1, ArrB1, B2, B, ArrB]
trait Int2PairArrMapBuilder[B1, ArrB1, B2, B, ArrB]
trait Int3PairArrMapBuilder[B1, ArrB1, B2, B, ArrB]
trait Int4PairArrMapBuilder[B1, ArrB1, B2, B, ArrB]
trait SeqLikePairArrBuilder[B1E, B1, ArrB1, B2, B, ArrB]
trait SeqLikeDblNPairArrBuilder[B1E, B1, ArrB1, B2, B, ArrB]
trait PolygonLikeDblNPairArrBuilder[B1V, B1, ArrB1, A2, B, ArrB]
trait SeqLikeIntNPairArrBuilder[B1E, B1, ArrB1, B2, B, ArrB]
trait PolygonLikePairArrBuilder[B1V, B1, ArrB1, B2, B, ArrB]
trait PolygonIntsLikePairArrBuilder[B1V, B1, ArrB1, A2, B, ArrB]
trait LineSegLikePairArrBuilder[B1V, B1, ArrB1, B2, B, ArrB]

Members list

Concise view

Type members

Types

type BuffT <: PairBuff[B1, B2, 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

Inherited types

type B1BuffT <: Buff[B1]

The type of the Buff for accumulating B1s.

The type of the Buff for accumulating B1s.

Attributes

Inherited from:
PairArrCommonBuilder

Value members

Abstract methods

def arrFromArrAndArray(b1Arr: ArrB1, b2s: Array[B2]): ArrB

Builder for the sequence of pairs, takes the results of the other two builder methods to produce the end product.

Builder for the sequence of pairs, takes the results of the other two builder methods to produce the end product.

Attributes

def b1ArrBuilder: ArrMapBuilder[B1, ArrB1]

Builder for an Arr of the first element of the pair.

Builder for an Arr of the first element of the pair.

Attributes

Concrete methods

final def b1Uninitialised(length: Int): ArrB1

Inherited methods

def arrFromBuffs(a1Buff: B1BuffT, b2s: ArrayBuffer[B2]): ArrB

Constructs an Arr of B from the Buffs of the B1 and B2 components.

Constructs an Arr of B from the Buffs of the B1 and B2 components.

Attributes

Inherited from:
PairArrCommonBuilder
def b1BuffGrow(buff: B1BuffT, newElem: B1): Unit

Expands / appends the B1 Buff with a songle element of B1.

Expands / appends the B1 Buff with a songle element of B1.

Attributes

Inherited from:
PairArrCommonBuilder
def buffContains(buff: BuffT, newElem: B): Boolean

Attributes

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

Attributes

Inherited from:
SeqLikeMapBuilder
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.

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
def indexSet(seqLike: ArrB, index: Int, value: 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

Constructs a new empty Buff for the B1 components of the pairs.

Constructs a new empty Buff for the B1 components of the pairs.

Attributes

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

Implicits

Inherited implicits

implicit def b2ClassTag: ClassTag[B2]

ClassTag for building Arrays and ArrayBuffers of B2s.

ClassTag for building Arrays and ArrayBuffers of B2s.

Attributes

Inherited from:
PairArrCommonBuilder