HCoordBuff

final
class HCoordBuff(val unsafeBuff: ArrayBuffer[Int]) extends AnyVal with BuffInt2s[HCoord]
trait SeqGen[HCoord]
class AnyVal
trait Matchable
class Any

Type members

Types

type ArrT = HCoords

Inherited types

type ThisT <: SeqGen[A]

The final type of this object.

The final type of this object.

Inherited from
SeqGen

Value members

Concrete methods

override
def intsToT(i1: Int, i2: Int): HCoord
Definition Classes
override
def typeStr: String
Definition Classes

Inherited methods

@inline
def apply(index: Int): HCoord

apply method accesses the individual elements of the sequence by 0 based index.

apply method accesses the individual elements of the sequence by 0 based index.

Inherited from
SeqGen
def collect[B, BB <: ArrBase[B]](pf: PartialFunction[HCoord, B])(implicit ev: ArrBuilder[B, BB]): BB

Collects values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

Collects values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

Inherited from
SeqGen
def collectList[B](pf: PartialFunction[HCoord, B]): List[B]

Collects a List values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

Collects a List values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

Inherited from
SeqGen
def contains[A1 >: HCoord](elem: A1): Boolean
Inherited from
SeqGen
@inline
def cycleGet(index: Int): HCoord

Applies an index to this ArrayLike collection which cycles back to element 0, when it reaches the end of the collection. Accepts even negative integers as an index value without throwing an exception.

Applies an index to this ArrayLike collection which cycles back to element 0, when it reaches the end of the collection. Accepts even negative integers as an index value without throwing an exception.

Inherited from
SeqGen
def dataForeach[U](f: HCoord => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from
DataGen
def dataIForeach[U](f: (HCoord, Int) => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from
DataGen
Inherited from
DataGen
def dataMap[B, ArrB <: ArrBase[B]](f: HCoord => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

Specialised map to an immutable ArrBase of B.

Specialised map to an immutable ArrBase of B.

Inherited from
DataGen
def dataTailForeach[U](f: HCoord => U): Unit

Foreachs over the tail of the data sequence.

Foreachs over the tail of the data sequence.

Inherited from
DataGen
def dataTailfold[B](initial: B)(f: (B, HCoord) => B): B

foldLeft over the tail of the data sequence.

foldLeft over the tail of the data sequence.

Inherited from
DataGen
def eMap[B, ArrB <: ArrBase[B]](f: HCoord => EMon[B])(implicit ev: ArrBuilder[B, ArrB]): EMon[ArrB]
Inherited from
SeqGen
def eMapList[B](f: HCoord => EMon[B]): EMon[List[B]]
Inherited from
SeqGen
override
def elemProdSize: Int
Definition Classes
Inherited from
BuffInt2s
def elemsLenStr: String

Just a handy short cut to give the length of this collection as a string.

Just a handy short cut to give the length of this collection as a string.

Inherited from
DataGen
override
def elemsNum: Int
Definition Classes
Inherited from
BuffIntNs
final
def elemsStr: String

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

Inherited from
DataGen
@inline
def empty: Boolean

Is this sequence empty?

Is this sequence empty?

Inherited from
SeqGen
def existsCount(f: HCoord => Boolean): Int

Counts the number of elements that fulfil the condition A => Boolean

Counts the number of elements that fulfil the condition A => Boolean

Inherited from
SeqGen
override
def fElemStr: HCoord => String
Definition Classes
Inherited from
BuffValueNs
def fMax[B](defaultValue: B)(f: HCoord => B)(implicit cmp: Ordering[B]): B

Gives the maximum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

Gives the maximum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

Inherited from
SeqGen
def fMin[B](defaultValue: B)(f: HCoord => B)(implicit cmp: Ordering[B]): B

Gives the minimum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

Gives the minimum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

Inherited from
SeqGen
def filter[ArrA <: ArrBase[HCoord]](f: HCoord => Boolean)(implicit ev: ArrBuilder[HCoord, ArrA]): ArrA
Inherited from
SeqGen
def filterNot[ArrA <: ArrBase[HCoord]](f: HCoord => Boolean)(implicit ev: ArrBuilder[HCoord, ArrA]): ArrA
Inherited from
SeqGen
def filterToList(f: HCoord => Boolean): List[HCoord]
Inherited from
SeqGen
def flatMap[ArrB <: ArrBase[_]](f: HCoord => ArrB)(implicit ev: ArrFlatBuilder[ArrB]): ArrB

Specialised flatMap to an immutable Arr.

Specialised flatMap to an immutable Arr.

Inherited from
SeqGen
def foldHeadTail[B](initial: B)(fHead: (B, HCoord) => B)(fTail: (B, HCoord) => B): B
Inherited from
SeqGen
def foldLeft[B](initial: B)(f: (B, HCoord) => B): B
Inherited from
SeqGen
def forAll(p: HCoord => Boolean): Boolean
Inherited from
SeqGen
def foreach[U](f: HCoord => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from
SeqGen
def foreachInit[U](f: HCoord => U): Unit
Inherited from
SeqGen
def foreachReverse[U](f: HCoord => U): Unit

Consider changing this name, as might not be appropriate to all sub classes.

Consider changing this name, as might not be appropriate to all sub classes.

Inherited from
SeqGen
override
def grow(newElem: HCoord): Unit
Definition Classes
Inherited from
BuffInt2s
override
def grows(newElems: ArrT): Unit
Definition Classes
Inherited from
BuffIntNs
@inline

The first element of this sequence.

The first element of this sequence.

Inherited from
SeqGen
def headFold[B](noHead: => B)(ifHead: HCoord => B): B

Folds over the non existence / existence of a head element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the head element.

Folds over the non existence / existence of a head element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the head element.

Inherited from
SeqGen
def iFlatMap[ArrB <: ArrBase[_]](iInit: Int)(f: (HCoord, Int) => ArrB)(implicit build: ArrFlatBuilder[ArrB]): ArrB

Specialised flatMap with index to an immutable Arr.

Specialised flatMap with index to an immutable Arr.

Inherited from
SeqGen
def iFlatMap[ArrB <: ArrBase[_]](f: (HCoord, Int) => ArrB)(implicit build: ArrFlatBuilder[ArrB]): ArrB

Specialised flatMap with index to an immutable Arr.

Specialised flatMap with index to an immutable Arr.

Inherited from
SeqGen
def iForAll(p: (HCoord, Int) => Boolean): Boolean
Inherited from
SeqGen
def iForeach[U](startIndex: Int)(f: (HCoord, Int) => U): Unit

Performs a side effecting function on each element of this sequence with an index starting at the given integer parameter.

Performs a side effecting function on each element of this sequence with an index starting at the given integer parameter.

Inherited from
SeqGen
def iForeach[U](f: (HCoord, Int) => U): Unit

Performs a side effecting function on each element of this sequence with an index starting at 0.

Performs a side effecting function on each element of this sequence with an index starting at 0.

Inherited from
SeqGen
def iForeachReverse[U](f: (HCoord, Int) => U): Unit
Inherited from
SeqGen
def iMap[B, ArrB <: ArrBase[B]](f: (HCoord, Int) => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

Specialised map with index to an immutable ArrBase of B. This method should be overridden in sub classes.

Specialised map with index to an immutable ArrBase of B. This method should be overridden in sub classes.

Inherited from
SeqGen
def ifHead[U](f: HCoord => U): Unit

if this SeqGen is nonEmpty performs the side effecting function on the head. If empty procedure is applied.

if this SeqGen is nonEmpty performs the side effecting function on the head. If empty procedure is applied.

Inherited from
SeqGen
override
def indexData(index: Int): HCoord
Definition Classes
Inherited from
BuffInt2s
def indexOf(elem: HCoord): Int
Inherited from
SeqGen
def indexWhere(f: HCoord => Boolean): Int

Return the index of the first element where predicate is true, or -1 if predicate not true forall.

Return the index of the first element where predicate is true, or -1 if predicate not true forall.

Inherited from
SeqGen
def iterFlatMap[B, ArrB <: ArrBase[B]](f: HCoord => Iterable[B])(implicit ev: ArrBuilder[B, ArrB]): ArrB

FlatMaps over a function from A to any Iterable.

FlatMaps over a function from A to any Iterable.

Inherited from
SeqGen
@inline

The last element of this sequence.

The last element of this sequence.

Inherited from
SeqGen
def lastFold[B](noLast: => B)(ifLast: HCoord => B): B

Folds over the non existence / existence of a last element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the last element.

Folds over the non existence / existence of a last element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the last element.

Inherited from
SeqGen
def map[B, ArrB <: ArrBase[B]](f: HCoord => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

Specialised map to an immutable ArrBase of B.

Specialised map to an immutable ArrBase of B.

Inherited from
SeqGen
def map2To1[B, ArrB <: ArrBase[B]](f: (HCoord, HCoord) => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

map 2 elements of A to 1 element of B. Ignores the last element on a collection of odd numbered length.

map 2 elements of A to 1 element of B. Ignores the last element on a collection of odd numbered length.

Inherited from
SeqGen
def mapCollectGoods[B, BB <: ArrBase[B]](f: HCoord => EMon[B])(implicit ev: ArrBuilder[B, BB]): BB

maps from A to EMon[B], collects the good values.

maps from A to EMon[B], collects the good values.

Inherited from
SeqGen
def mapList[B <: AnyRef](f: HCoord => B): List[B]

maps ValueProduct collection to List

maps ValueProduct collection to List

Inherited from
SeqGen
def mapWithAcc[B, ArrB <: ArrBase[B], C](initC: C)(f: (HCoord, C) => (B, C))(implicit ev: ArrBuilder[B, ArrB]): ArrB
Inherited from
SeqGen
def max[B >: HCoord](implicit ord: Ordering[B]): HCoord
Inherited from
SeqGen
def min[B >: HCoord](implicit ord: Ordering[B]): HCoord
Inherited from
SeqGen
def mkString(seperator: String): String

Not sure about this method.

Not sure about this method.

Inherited from
SeqGen
@inline
def nonEmpty: Boolean

Is this sequence non empty?

Is this sequence non empty?

Inherited from
SeqGen
@inline

Method for keeping the typer happy when returning this as an instance of ThisT.

Method for keeping the typer happy when returning this as an instance of ThisT.

Inherited from
SeqGen
def sum(implicit ev: Sumable[HCoord]): HCoord
Inherited from
SeqGen
def sumBy(f: HCoord => Int): Int
Inherited from
SeqGen
def tailForeach[U](f: HCoord => U): Unit

Foreachs over the tail of this sequence.

Foreachs over the tail of this sequence.

Inherited from
SeqGen
def tailfold[B](initial: B)(f: (B, HCoord) => B): B

foldLeft over the tail of this sequence.

foldLeft over the tail of this sequence.

Inherited from
SeqGen
def toArr(implicit build: ArrBuilder[HCoord, ArrT]): ArrT
Inherited from
BuffValueNs
def toArray: Array[Int]
Inherited from
BuffIntNs
def toList: List[HCoord]
Inherited from
SeqGen
final override
def toString: String
Definition Classes
DataGen -> Any
Inherited from
DataGen
def toStrsCommaFold(fToStr: HCoord => String): String
Inherited from
SeqGen
def toStrsCommaNoSpaceFold(fToStr: HCoord => String): String
Inherited from
SeqGen
def toStrsCommaParenth(fToStr: HCoord => String): String
Inherited from
SeqGen
def toStrsFold(seperator: String, f: HCoord => String): String
Inherited from
SeqGen
def toStrsSemiFold(fToStr: HCoord => String): String
Inherited from
SeqGen
def toStrsSemiParenth(fToStr: HCoord => String): String
Inherited from
SeqGen
override
def unsafeSetElem(i: Int, value: HCoord): Unit
Definition Classes
Inherited from
BuffInt2s
def unsafeSetElems(index: Int, elems: HCoord*): Unit

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Inherited from
DataGen
def zipMap[B, C, ArrC <: ArrBase[C]](operator: SeqGen[B])(f: (HCoord, B) => C)(implicit ev: ArrBuilder[C, ArrC]): ArrC

Takes a second collection as a parameter and zips the elements of this collection and the operand collection and applies the specialised map function from type A and type B to type C.

Takes a second collection as a parameter and zips the elements of this collection and the operand collection and applies the specialised map function from type A and type B to type C.

Inherited from
SeqGen
def zipMap2[B, C, D, ArrD <: ArrBase[D]](operator1: SeqGen[B], operator2: SeqGen[C])(f: (HCoord, B, C) => D)(implicit ev: ArrBuilder[D, ArrD]): ArrD

Takes a second collection and third collections as parameters and zips the elements of this collection and the operand collections and applies the specialised map function from type A and type B and type C to type D.

Takes a second collection and third collections as parameters and zips the elements of this collection and the operand collections and applies the specialised map function from type A and type B and type C to type D.

Inherited from
SeqGen

Concrete fields

val unsafeBuff: ArrayBuffer[Int]