LayerHcOptRow

ostrat.prid.phex.LayerHcOptRow
See theLayerHcOptRow companion object
class LayerHcOptRow[A <: AnyRef](val row: Int, val arrayUnsafe: Array[A]) extends LayerHcOpt[A]

HCen layer for a hex row.

Attributes

Companion
object
Graph
Supertypes
trait LayerHcOpt[A]
trait LayerTcOpt[A]
class Object
trait Matchable
class Any

Members list

Type members

Types

override type KeyT = HCenRow
type ThisT = LayerHcOptSys[A]

Value members

Concrete methods

override def equals(obj: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Any
def numTiles: Int
override def typeStr: String

Attributes

Definition Classes

Inherited methods

The length of this tile grid mapped Array of optional values.

The length of this tile grid mapped Array of optional values.

Attributes

Inherited from:
LayerTcOpt
def foldSomes[B](init: B)(f: (B, A) => B): B

Attributes

Inherited from:
LayerTcOpt
def foreach[U](noneValue: => U)(f: A => U): Unit

Attributes

Inherited from:
LayerTcOpt
def mapArr[B, ArrT <: Arr[B]](noneValue: => B)(f: A => B)(implicit build: BuilderArrMap[B, ArrT]): ArrT

Maps the this Arr of Opt values, without their respective Hcen coordinates to an Arr of type B. This method treats the HCenArrOpt class like a standard Arr or Array. It does not utilise the grid TGrid from which this LayerTcOpt was created.

Maps the this Arr of Opt values, without their respective Hcen coordinates to an Arr of type B. This method treats the HCenArrOpt class like a standard Arr or Array. It does not utilise the grid TGrid from which this LayerTcOpt was created.

Attributes

Inherited from:
LayerTcOpt
def mapPairArr[B1, ArrB1 <: Arr[B1], B2, B <: PairFinalA1Elem[B1, B2], ArrB <: PairArrFinalA1[B1, ArrB1, B2, B]](noneB1: => B1, noneB2: => B2)(f1: A => B1)(f2: A => B2)(implicit build: BuilderArrPairMap[B1, ArrB1, B2, B, ArrB]): ArrB

Attributes

Inherited from:
LayerTcOpt
def numSomes: Int

Attributes

Inherited from:
LayerTcOpt
def somesArr[ArrA <: Arr[A]](implicit build: BuilderArrMap[A, ArrA]): ArrA

Returns an ArrBase[A] of type ArrA filtered to the Some values.

Returns an ArrBase[A] of type ArrA filtered to the Some values.

Attributes

Inherited from:
LayerTcOpt
def somesMapArr[B, ArrT <: Arr[B]](f: A => B)(implicit build: BuilderArrMap[B, ArrT]): ArrT

Maps the Some values to type B by the parameter function. It ignores the None values. This method treats the HCenArr class like a standard Arr or Array. It does not utilise the grid TGrid from which this LayerTcOpt was created.

Maps the Some values to type B by the parameter function. It ignores the None values. This method treats the HCenArr class like a standard Arr or Array. It does not utilise the grid TGrid from which this LayerTcOpt was created.

Attributes

Inherited from:
LayerTcOpt

Concrete fields

val arrayUnsafe: Array[A]

The underlying mutable backing Array. it is designated unsafe because it uses nulls for run time efficiency. End users should rarely need to access this directly.

The underlying mutable backing Array. it is designated unsafe because it uses nulls for run time efficiency. End users should rarely need to access this directly.

Attributes

val row: Int