BuilderArrMap

ostrat.BuilderArrMap
See theBuilderArrMap companion object
trait BuilderArrMap[B, ArrB <: Arr[B]] extends BuilderSeqLikeMap[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.

Attributes

Companion
object
Graph
Supertypes
trait BuilderSeqLikeMap[B, ArrB]
trait BuilderSeqLike[ArrB]
trait BuilderCollMap[B, ArrB]
trait BuilderColl[ArrB]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait ArrayIntArrBuilder[A, ArrT]
trait BuilderArrPairMap[B1, ArrB1, B2, B, ArrB]
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]
trait BuilderArrValueNMap[B, ArrB]
trait BuilderArrDblNMap[B, ArrB]
trait BuilderArrDbl2Map[B, ArrB]
trait BuilderArrDbl3Map[B, ArrB]
trait BuilderArrDbl4Map[B, ArrB]
trait BuilderArrDbl5Map[B, ArrB]
trait BuilderArrDbl6Map[B, ArrB]
trait BuilderArrIntNMap[B, ArrB]
trait BuilderArrInt1Map[A, ArrT]
trait BuilderArrInt2Map[B, ArrB]
trait BuilderArrInt3Map[B, ArrB]
trait BuilderArrInt4Map[B, ArrB]
trait BuilderArrInt5Map[B, ArrB]
trait BuilderArrInt6Map[B, ArrB]
trait BuilderMapArrArrayDbl[A, ArrT]
object DblArrBuilder
object IntArrBuilder
class RArrAllBuilder[B]
Show all

Members list

Type members

Inherited types

type BuffT <: BuffSequ[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 from:
BuilderSeqLikeMap

Value members

Concrete methods

def buffContains(buff: BuffT, newElem: B): Boolean
def iterMap[A](inp: Iterable[A], f: A => B): ArrB

Inherited methods

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