PolygonBuilder

trait PolygonBuilder[B <: ElemValueN, +BB <: PolygonLike[B]] extends DataBuilderCommon[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.

class Object
trait Matchable
class Any
trait PolygonDblNsBuilder[B, BB]
trait PolygonDbl2sBuilder[B, BB]
trait PolygonDbl3sBuilder[B, BB]
trait PolygonIntNsBuilder[B, BB]
trait PolygonInt2sBuilder[B, BB]

Type members

Types

type BuffT <: SeqGen[B]

Value members

Abstract methods

def arrSet(arr: BB, index: Int, value: B): Unit
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.

def newPolygonT(length: Int): BB

Creates a new uninitialised class of type BB.

Creates a new uninitialised class of type 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 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
DataBuilderCommon
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