BuilderMapArrPair

ostrat.BuilderMapArrPair
See theBuilderMapArrPair companion object
trait BuilderMapArrPair[B1, ArrB1 <: Arr[B1], B2, B <: PairElem[B1, B2], ArrB <: ArrPair[B1, ArrB1, B2, B]] extends BuilderArrPair[B1, ArrB1, B2, ArrB], BuilderArrMap[B, ArrB]

BuilderMap for constructing Arr objects, with PairElems via the map method. Hence, the call site knows the type of the PairElems that will make up the final Arr object.

Attributes

Companion
object
Graph
Supertypes
trait BuilderArrMap[B, ArrB]
trait BuilderMapSeqLike[B, ArrB]
trait BuilderMap[B, ArrB]
trait BuilderArrPair[B1, ArrB1, B2, ArrB]
trait BuilderSeqLike[ArrB]
trait BuilderBoth[ArrB]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait LineSegLikePairArrBuilder[B1V, B1, ArrB1, B2, B, ArrB]
trait BuilderArrMapPairSeqLike[B1E, B1, ArrB1, B2, B, ArrB]
trait PolygonLikePairArrBuilder[B1V, B1, ArrB1, B2, B, ArrB]
trait PolygonIntsLikePairArrBuilder[B1V, B1, ArrB1, A2, B, ArrB]
trait PolygonLikeDblNPairArrBuilder[B1V, B1, ArrB1, A2, B, ArrB]
trait BuilderMapArrPairSeqLikeDblN[B1E, B1, ArrB1, B2, B, ArrB]
trait BuilderMapArrPairSeqLikeIntN[B1E, B1, ArrB1, B2, B, ArrB]
class PolygonHCPairBuild[A2]
trait BuilderArrPairDblNMap[B1, ArrB1, B2, B, ArrB]
trait BuilderArrPairDbl2Map[B1, ArrB1, B2, B, ArrB]
trait BuilderArrPairDbl3[B1, ArrB1, B2, B, ArrB]
trait BuilderArrPairDbl4Map[B1, ArrB1, B2, B, ArrB]
trait BuilderArrPairIntNMap[B1, ArrB1, B2, B, ArrB]
trait BuilderArrPairIn1Map[B1, ArrB1, B2, B, ArrB]
trait BuilderArrPairInt2Map[B1, ArrB1, B2, B, ArrB]
trait BuilderArrPairInt3Map[B1, ArrB1, B2, B, ArrB]
trait BuilderMapArrPairInt4[B1, ArrB1, B2, B, ArrB]
class RPairArrMapBuilder[B1, B2]
Show all

Members list

Type members

Types

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

Inherited and Abstract types

type B1BuffT <: Buff[B1]

The type of the Buff for accumulating B1s.

The type of the Buff for accumulating B1s.

Attributes

Inherited from:
BuilderArrPair

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: BuilderArrMap[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
final def b2Uninitialised(length: Int): Array[B2]

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

Attributes

Inherited from:
BuilderArrPair

Inherited and Abstract methods

def arrFromBuffs(b1Buff: B1BuffT, b2Buffer: 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:
BuilderArrPair
def b1BuffGrow(buff: B1BuffT, newElem: B1): Unit

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

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

Attributes

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

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:
BuilderArrPair
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

Implicits

Inherited and Abstract 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:
BuilderArrPair