Show

ostrat.Show
trait Show extends TypeStr

A trait for providing an alternative to toString. USing this trait can be convenient, but at some level of the inheritance the type must provide a ShowT type class instance. It is better for the ShowT type class instance to delegate to this trait than have the toString method delegate to the ShowT type class instance in the companion object. Potentially that can create initialisation order problems, but at the very least it can increase compile times. The capabilities of decimal place precision and explicit typing for numbers are placed defined here and in the corresponding SHowT type class although they have n meaning / purpose for many types, as separating them adds enormous complexity for very little gain.

Attributes

Graph
Supertypes
trait TypeStr
class Any
Known subtypes
trait ShowDec
trait ShowN
trait Show2[A1, A2]
trait ShowDbl2
class PtM2
trait Vec2Like
class Pt2
class Vec2
trait length2M
class Vec2M
class LatLong
trait TCoord
trait TCen
class HCen
class SqCen
trait TSide
class HSide
class SqSide
trait TVert
trait HCoord
trait HNotVert
class HVert
trait SqCoord
class SqVert
class Player
object PlayerA.type
object PlayerB.type
object PlayerC.type
object PlayerD.type
class HexParrX
class HexParrY
class HexRegImp
class LineSeg
class Sqlign
class HGView
trait HexMemShow[A]
class HPlayer
class HSquad
trait Show3[A1, A2, A3]
trait ShowDbl3
trait Vec3Like
class Pt3
class Vec3
trait Show4[A1, A2, A3, A4]
trait AngleLike
class Angle
class AngleVec
class Latitude
class Longitude
trait HexReg
trait Hexlign
trait ShowNoDec
trait Polity
object Macedon.type
object Rome.type
trait Faction
object Eridu.type
object Uruk.type
class Character
object CharacA.type
object CharacB.type
object CharacY.type
object CharacZ.type
trait DungTerr
object Open.type
object Wall.type
class Faction
object Fact1.type
object Fact2.type
trait WSide
object Lake.type
object Sea.type
trait WTile
class Land
object SeaIce.type
object TerrainNone.type
trait Water
object Turn.type
trait Polity
object Britain.type
object France.type
trait Polity
object Britain.type
object France.type
object Germany.type
trait Polity
object Britain.type
object France.type
object Germany.type
trait Polity
object Britain.type
object France.type
object Germany.type
trait ZugTerr
trait Building
object StoneBuilding.type
object WoodBuilding.type
object Hill.type
object Lake.type
object Plain.type
object WheatField.type

Members list

Concise view

Value members

Abstract methods

def show(style: ShowStyle): String

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

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

Attributes

def showDec(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String

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

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

Attributes

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

Concrete methods

def showDec(style: ShowStyle, maxPlaces: Int): String

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

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

Attributes

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
Any

Inherited methods

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

Attributes

Inherited from:
TypeStr