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.

Attributes

Graph
Supertypes
trait SeqLike[A]
class Any
Known subtypes
trait ValueNSeqSpec[A]
trait DblNSeqSpec[A]
trait Dbl2SeqSpec[A]
trait LinePathDbl2[A]
class LinePath
class LinePathM
trait Polygon
trait HexReg
class HexRegImp
trait Hexlign
class HexParrX
class HexParrY
trait Rectangle
class PhiRect
class PhiRectY
trait Rect
class RectImp
class Sqlign
trait Square
class SquareImp
trait Triangle
trait PolygonLikeDbl2[VT]
class PolygonM2
class PolygonLL
trait Dbl3SeqSpec[A]
trait LinePathDbl3[A]
trait PolygonLikeDbl3[VT]
class PolygonM3
trait Dbl4SeqSpec[A]
trait Dbl5SeqSpec[A]
trait Dbl6SeqSpec[A]
trait Dbl7SeqSpec[A]
trait LinePathDblN[A]
trait PolygonLikeDblN[VT]
trait IntNSeqSpec[A]
trait Int1SeqSpec[A]
trait Int2SeqSpec[A]
trait LinePathInt2[A]
trait PolygonLikeInt2[VT]
class PolygonHC
trait Int3SeqSpec[A]
trait Int4SeqSpec[A]
trait LinePathIntN[A]
trait PolygonLikeIntN[VT]
trait LongNSeqSpec[A]
trait LongNArr[A]
trait Long1Arr[A]
trait PolygonValueN[VT]
trait LinePathLike[A]
trait PolygonLike[VT]

Members list

Concise view

Type members

Types

type ThisT <: SeqSpec[A]

Gives the final type of this class.

Gives the final type of this class.

Attributes

Value members

Abstract methods

def ssIndex(index: Int): A

Accesses the specifying sequence element by a 0 based index.

Accesses the specifying sequence element by a 0 based index.

Attributes

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.

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.

Attributes

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 ssFold[B](initVal: B)(f: (B, A) => B): B

specifying -sequence fold.

specifying -sequence fold.

Attributes

def ssForeach[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

def ssIForeach[U](f: (Int, A) => Any): Unit

Index with foreach on the 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 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 ssIForeach[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 ssLast: A

Last element of the specifying sequence.

Last element of the specifying sequence.

Attributes

def ssMap[B, ArrB <: Arr[B]](f: A => B)(implicit ev: ArrMapBuilder[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 ssReverseForeach[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 ssTailFold[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 ssTailForeach[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

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

String specifying the type of this object.

String specifying the type of this object.

Attributes

Inherited from:
SeqLike
def unsafeSetElem(i: Int, value: A): Unit

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

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

Attributes

Inherited from:
SeqLike
def unsafeSetElems(index: Int, elems: A*): 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.

Attributes

Inherited from:
SeqLike