BuilderArrPairMap

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

Builder for ArrPair objects via the map f: A => PairB, 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 BuilderSeqLikeMap[B, ArrB]
trait BuilderCollMap[B, ArrB]
trait BuilderArrPair[B1, ArrB1, B2, ArrB]
trait BuilderSeqLike[ArrB]
trait BuilderColl[ArrB]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait LineSegLikePairArrBuilder[B1V, B1, ArrB1, B2, B, ArrB]
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 BuilderArrPairInt4Map[B1, ArrB1, B2, B, ArrB]
class RPairArrMapBuilder[B1, B2]
trait SeqLikePairArrBuilder[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 SeqLikeDblNPairArrBuilder[B1E, B1, ArrB1, B2, B, ArrB]
trait SeqLikeIntNPairArrBuilder[B1E, B1, ArrB1, B2, B, ArrB]
class PolygonHCPairBuild[A2]
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 = 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 <: BuffSequ[B1]

The type of the BuffSequ for accumulating B1s.

The type of the BuffSequ 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 arrFromBuffs(b1Buff: B1BuffT, b2Buffer: ArrayBuffer[B2]): ArrB

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

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

Attributes

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

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

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

Attributes

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

Attributes

Inherited from:
BuilderArrMap
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:
BuilderCollMap
def buffGrowIter(buff: BuffT, newElems: Iterable[B]): Unit

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

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

Attributes

Inherited from:
BuilderSeqLikeMap
def buffToSeqLike(buff: BuffT): ArrB

converts a the buffer type to the target compound class.

converts a the buffer type to the target compound class.

Attributes

Inherited from:
BuilderColl
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:
BuilderSeqLikeMap
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:
BuilderSeqLikeMap
def iterMap[A](inp: Iterable[A], f: A => B): ArrB

Attributes

Inherited from:
BuilderArrMap

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

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

Attributes

Inherited from:
BuilderArrPair

Attributes

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

Creates a new empty BuffSequ with a default capacity of 4 elements.

Creates a new empty BuffSequ with a default capacity of 4 elements.

Attributes

Inherited from:
BuilderColl
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:
BuilderSeqLikeMap

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