LayerTcOpt

ostrat.prid.LayerTcOpt
trait LayerTcOpt[A <: AnyRef]

An efficient immutable array of optional values mapped to a TGridSys tile grid.

Attributes

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

Members list

Type members

Types

type ThisT <: LayerTcOpt[A]

Value members

Abstract 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

Concrete methods

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

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

Attributes

def foldSomes[B](init: B)(f: (B, A) => B): B
def foreach[U](noneValue: => U)(f: A => U): Unit
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

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
def numSomes: Int
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

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