SeqSpec

ostrat.SeqSpec
trait SeqSpec[+A] extends SeqLike[A]

Sequence specified objects. An immutable class that can be specified by a sequence of elements. Uses a backing Array for efficient storage. Examples include polygons and line paths that can be specified by a sequence of points. It is possible for the specifying sequence to be a reference type.

Attributes

Graph
Supertypes
trait SeqLike[A]
class Any
Known subtypes
trait VertSeqSpec[VT]
trait LinePathBase[VT]
trait LinePathDblN[VT]
trait LinePathDbl2[VT]
class LinePathLL
class LinePath
class LinePathFm2
class LinePathKm2
class LinePathM2
class LinePathPm2
trait LinePathDbl3[VT]
class LinePathKm3
class LinePathM3
trait LinePathIntN[VT]
trait LinePathInt2[VT]
class LinePathHC
trait PolygonBase[VT]
trait Polygon
trait Polygon3Plus
trait Polygon4Plus
trait Polygon5Plus
trait Polygon6Plus
class DoDeclign
trait HexReg
class HexRegImp
trait Hexlign
class HexParrX
class HexParrY
class Trapezium
trait Rectangle
trait PhiRectangle
trait PhiRect
class PhiRectHigh
class PhiRectWide
trait Rect
object NoBounds
class RectGen
class Sqlign
class RectangleGen
trait Square
class SquareGen
trait Triangle
class TriangleGen
trait TriangleIsos
class TriangleEqui
class PolygonGen
trait PolygonValueN[VT]
trait PolygonDblN[VT]
trait PolygonDbl2[VT]
class PolygonLL
trait PolygonLen2[VT]
class PolygonKm2
trait PolygonLen2P3[VT]
trait PolygonLen2P4[VT]
trait PolygonM2P4
trait QuadM2
trait RectangleM2
trait RectM2
class SqlignM2
trait QuadLen2[VT]
trait RectangleLen2[VT]
trait RectLen2[VT]
trait SqlignLen2[VT]
trait SquareLen2[VT]
trait PolygonM2P3
class TriangleM2
trait TriangleLen2[VT]
trait PolygonM2
class PolygonM2Gen
class PolygonPm2
trait PolygonDbl3[VT]
trait PolygonLength3[VT]
class PolygonKm3
class PolygonM3
trait PolygonIntN[VT]
trait PolygonInt2[VT]
class PolygonHC
class PolygonSqC
trait PolygonInt3[VT]
trait BoolSeqSpec
trait SeqSpecValueN[A]
trait SeqSpecDblN[A]
trait SeqSpecDbl2[A]
trait Pt2SeqSpec
trait SeqSpecDbl3[A]
trait PtKm3SeqSpec
trait SeqSpecDbl4[A]
trait SeqSpecDbl5[A]
trait SeqSpecDbl6[A]
trait SeqSpecDbl7[A]
class ShapeGenOld
trait SeqSpecIntN[A]
trait SeqSpecInt1[A]
trait SeqSpecInt2[A]
class HTilePolygon
trait SeqSpecInt3[A]
trait SeqSpecInt4[A]
trait SeqSpecInt5[A]
trait SeqSpecInt6[A]
trait SeqSpecLongN[A]
Show all

Members list

Type members

Types

type ThisT <: SeqSpec[A]

Gives the final type of this class.

Gives the final type of this class.

Attributes

Value members

Concrete methods

override 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.

Attributes

Definition Classes
def foldLeft[B](initVal: B)(f: (B, A) => B): B

foldLeft over the specifying sequence.

foldLeft over the specifying sequence.

Attributes

override def foreach[U](f: A => U): Unit

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

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

Attributes

Definition Classes
def iForeach[U](f: (Int, A) => Any): Unit

Index with foreach on the specifying sequence elements. Performs a side effecting function on the index and each element of the specifying sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Index with foreach on the specifying sequence elements. Performs a side effecting function on the index and each element of the specifying sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Attributes

def iForeach[U](initIndex: Int)(f: (Int, A) => U): Unit

Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Attributes

def innerForeach[U](f: A => U): Unit

Foreachs over the inner of the specifying sequence, excludes the first and last element. Performs a side effecting function on each element of the tail of the specifying sequence in order.

Foreachs over the inner of the specifying sequence, excludes the first and last element. Performs a side effecting function on each element of the tail of the specifying sequence in order.

Attributes

def last: A

Last element of the specifying sequence.

Last element of the specifying sequence.

Attributes

def mapArr[B, ArrB <: Arr[B]](f: A => B)(implicit ev: BuilderArrMap[B, ArrB]): ArrB

Specialised map to an immutable Arr of B. For Sequ dataMap is the same as map, but for other structures it will be different, for example a PolygonLike will map to another PolygonLike.

Specialised map to an immutable Arr of B. For Sequ dataMap is the same as map, but for other structures it will be different, for example a PolygonLike will map to another PolygonLike.

Attributes

def reverseForeach[U](f: A => U): Unit

Performs a side effecting function on each element of the specifying-sequence in reverse order. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Performs a side effecting function on each element of the specifying-sequence in reverse order. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Attributes

def tailFold[B](initial: B)(f: (B, A) => B): B

FoldLeft over the tail of the specifying sequence.

FoldLeft over the tail of the specifying sequence.

Attributes

def tailForeach[U](f: A => U): Unit

Foreachs over the tail of the specifying sequence. Performs a side effecting function on each element of the tail of the specifying sequence in order.

Foreachs over the tail of the specifying sequence. Performs a side effecting function on each element of the tail of the specifying sequence in order.

Attributes

Inherited methods

def fElemStr: A => String

String for element, can be overridden.

String for element, can be overridden.

Attributes

Inherited from:
SeqLike
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
SeqLike -> Any
Inherited from:
SeqLike

Inherited and Abstract methods

def elem(index: Int): A

Accesses the specifying sequence element by a 0 based index. For Sequs this will an alternative name for apply.

Accesses the specifying sequence element by a 0 based index. For Sequs this will an alternative name for apply.

Attributes

Inherited from:
SeqLike
def numElems: Int

The number of data elements in the defining sequence. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array will be a multiple of this number. For Sequs this will be an alternative name for length.

The number of data elements in the defining sequence. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array will be a multiple of this number. For Sequs this will be an alternative name for length.

Attributes

Inherited from:
SeqLike

String specifying the type of this object.

String specifying the type of this object.

Attributes

Inherited from:
SeqLike