LayerHcOpt

ostrat.prid.phex.LayerHcOpt
trait LayerHcOpt[A <: AnyRef] extends LayerTcOpt[A]

Attributes

Graph
Supertypes
trait LayerTcOpt[A]
class Any
Known subtypes
class LayerHcOptGrid[A]
class LayerHcOptRow[A]
class LayerHcOptSys[A]

Members list

Type members

Types

type KeyT <: HexStruct

Inherited types

type ThisT <: LayerTcOpt[A]

Attributes

Inherited from:
LayerTcOpt

Value members

Inherited methods

def 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

Inherited from:
LayerTcOpt

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

Attributes

Inherited from:
LayerTcOpt