Tell2

ostrat.Tell2
trait Tell2[A1, A2] extends Tell2Plused[A1, A2], Persist2[A1, A2]

Trait for TellDec for a product of 2 logical elements. This trait is implemented directly by the type in question, unlike the corresponding Show2 trait which externally acts on an object of the specified type to create its String representations. For your own types it is better to inherit from Show2 and then use ShowTell2 or Persist2ElemT to create the type class instance for ShowT. The ShowTell2 or PersistTell2 class will delegate to Show2 for some of its methods. It is better to use Show2 to override toString method than delegating the toString override to a Show2 instance.

Attributes

Graph
Supertypes
trait Persist2[A1, A2]
trait Tell2Plused[A1, A2]
trait Persist2Plus[A1, A2]
trait Persist1Plus[A1]
trait PersistN
trait TellN
trait Tell
trait Persist
class Any
Show all
Known subtypes
class Counter
object CounterA
object CounterB
object CounterC
object CounterD
object CounterE
class HexParrX
class HexParrY
class HexRegImp
class LineSeg
class Sqlign
class Army
class HGView
trait HexMemShow[A]
class HCounter
class HSquad
class SGView
trait SqMemShow[A]
class SqCounter
trait TellDbl2
class LatLong
trait TellElemDbl2
class PtM2
trait Vec2Like
class Pt2
class Vec2
trait length2M
class Vec2M
trait TellInt2
trait TellElemInt2
trait TCoord
trait HCoord
trait HNotVert
trait HCenOrSep
class HCen
trait HSep
class HSepA
class HSepB
class HSepC
class HCoordOther
trait HVert
class HVertHigh
class HVertLow
trait SqCoord
trait SqCenOrSep
class SqCen
class SqSep
class SqVert
trait TCenOrSep
trait TCen
trait TSep
trait TVert
Show all

Members list

Value members

Concrete methods

def el1Show(style: ShowStyle, maxPlaces: Int): String
def el2Show(style: ShowStyle, maxPlaces: Int): String

A StrArr Arr of the element type names of this Show Product class.

A StrArr Arr of the element type names of this Show Product class.

Attributes

override def paramNames: StrArr

Sequence of the names of parameter constituents of this class.

Sequence of the names of parameter constituents of this class.

Attributes

Definition Classes
override def tellDepth: Int

The syntactic depth of the tell String for this object.

The syntactic depth of the tell String for this object.

Attributes

Definition Classes
override def tellElemStrs(way: ShowStyle, decimalPlaces: Int, minPlaces: Int): StrArr

A StrArr Arr collection of the show methods return values of the elements of this Show Product class.

A StrArr Arr collection of the show methods return values of the elements of this Show Product class.

Attributes

Definition Classes

Inherited methods

def name1: String

1st parameter name.

1st parameter name.

Attributes

Inherited from:
Persist1Plus
def name2: String

2nd parameter name.

2nd parameter name.

Attributes

Inherited from:
Persist2Plus
override def numParams: Int

Number of parameter constituents of this class.

Number of parameter constituents of this class.

Attributes

Definition Classes
Inherited from:
Persist2
override def opt1: Option[A1]

The optional default value for parameter 1.

The optional default value for parameter 1.

Attributes

Definition Classes
Inherited from:
Tell2Plused
override def opt2: Option[A2]

The optional default value for parameter 2.

The optional default value for parameter 2.

Attributes

Definition Classes
Inherited from:
Tell2Plused
def show1: Show[A1]

Attributes

Inherited from:
Tell2Plused
def show2: Show[A2]

Attributes

Inherited from:
Tell2Plused
override def str: String

The most basic Show method, paralleling the strT method on ShowT type class instances.

The most basic Show method, paralleling the strT method on ShowT type class instances.

Attributes

Definition Classes
TellN -> Tell
Inherited from:
TellN
def str0: String

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

Attributes

Inherited from:
Tell
def str1: String

Show with decimal precision of 1 place padding with a zero if necessary.

Show with decimal precision of 1 place padding with a zero if necessary.

Attributes

Inherited from:
Tell
def str2: String

Show with decimal precision of 2 places padding with zeros if necessary.

Show with decimal precision of 2 places padding with zeros if necessary.

Attributes

Inherited from:
Tell
def str3: String

Show with decimal precision of 3 places padding with zeros if necessary.

Show with decimal precision of 3 places padding with zeros if necessary.

Attributes

Inherited from:
Tell
override def tell(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by show method on Show type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by show method on Show type class instances.

Attributes

Definition Classes
TellN -> Tell
Inherited from:
TellN
def tell1: A1

Element 1 of this Tell2+ element product.

Element 1 of this Tell2+ element product.

Attributes

Inherited from:
Tell2Plused
def tell2: A2

Element 2 of this Tell2+ element product.

Element 2 of this Tell2+ element product.

Attributes

Inherited from:
Tell2Plused
def tellSemisNames(maxPlaces: Int, minPlaces: Int): String

Attributes

Inherited from:
TellN
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
Tell -> Any
Inherited from:
Tell

The type of the object to be persisted.

The type of the object to be persisted.

Attributes

Inherited from:
Persist

This property determines if the type can be used with Multiple syntax.

This property determines if the type can be used with Multiple syntax.

MyObj * 7

. for describing sequences succinctly. This is not desirable for some types such as numerical and mathematical vector types as this could be confusing 3 * 4 should resolve to an Int of value 12, not a Multiple(3, 4).

Attributes

Inherited from:
Persist