PersistInt2Both

ostrat.PersistInt2Both
See thePersistInt2Both companion object
class PersistInt2Both[A](val typeStr: String, val name1: String, val fArg1: A => Int, val name2: String, val fArg2: A => Int, val newT: (Int, Int) => A, val shortKeys: ArrPairStr[A], val opt2: Option[Int], opt1In: Option[Int]) extends PersistBoth[A], ShowInt2[A], UnshowInt2[A]

Class to provide both Show and Unshow type class instances with 2 Int components.

Attributes

Companion
object
Graph
Supertypes
trait UnshowInt2[A]
trait Unshow2[Int, Int, A]
trait Unshow2Plus[Int, Int, A]
trait UnshowN[A]
trait ShowInt2[A]
trait Show2[Int, Int, A]
trait Persist2[Int, Int]
trait Show2PlusFixed[Int, Int, A]
trait Persist2Plus[Int, Int]
trait Show1PlusFixed[Int, A]
trait Show1Plus[Int, A]
trait Persist1Plus[Int]
trait ShowNFixed[A]
trait PersistN
trait ShowCompound[A]
trait PersistBoth[A]
trait Unshow[A]
trait Show[A]
trait Persist
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def concat[TT >: A](operand: Unshow[TT], newTypeStr: String): Unshow[TT]

Attributes

Inherited from:
Unshow
override def fieldShows: RArr[Show[_]]

Attributes

Definition Classes
Inherited from:
Show2
def findUniqueTFromStatements[ArrT <: Arr[A]](sts: RArr[Statement])(implicit arrBuild: BuilderArrMap[A, ArrT]): EMon[A]

Finds value of this UnShow type, returns error if more than one match.

Finds value of this UnShow type, returns error if more than one match.

Attributes

Inherited from:
Unshow
def fromAnySettingOrExpr(expr: Expr): EMon[A]

Attributes

Inherited from:
Unshow
final override def fromExpr(expr: Expr): EMon[A]

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Attributes

Definition Classes
Inherited from:
UnshowN
final def fromExprSeq(exprs: RArr[Expr]): EMon[A]

Tries to construct the type from a sequence of parameters using out of order named parameters and default values.

Tries to construct the type from a sequence of parameters using out of order named parameters and default values.

Attributes

Inherited from:
UnshowN
def fromSettingOrExpr(SettingStr: String, expr: Expr): EMon[A]

Attributes

Inherited from:
Unshow
final def fromStatement(st: Statement): EMon[A]

Trys to build an object of type T from the statement.

Trys to build an object of type T from the statement.

Attributes

Inherited from:
Unshow
def keySettingFromStatement[KT](settingCode: KT, st: Statement)(implicit evST: Unshow[KT]): EMon[A]

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
def keySettingFromStatements[KT](sts: RArr[Statement], settingCode: KT)(implicit evST: Unshow[KT]): EMon[A]

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
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 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
Inherited from:
Persist2
def settingFromStatements(sts: RArr[Statement], settingStr: String): EMon[A]

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
def settingTFromStatement(settingStr: String, st: Statement): EMon[A]

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
override def show(obj: A, style: ShowStyle, maxPlaces: Int, minPlaces: Int): String

Attributes

Definition Classes
Inherited from:
ShowNFixed
def show1(obj: A, way: ShowStyle, maxPlaces: Int, minPlaces: Int): String

Shows parameter 1 of the object.

Shows parameter 1 of the object.

Attributes

Inherited from:
Show1Plus
override def show1Ev: Show[Int]

Show type class instance for the 1st Show field.

Show type class instance for the 1st Show field.

Attributes

Definition Classes
Inherited from:
ShowInt2
def show2(obj: A, way: ShowStyle, maxPlaces: Int, minPlaces: Int): String

Shows parameter 2 of the object.

Shows parameter 2 of the object.

Attributes

Inherited from:
Show2PlusFixed
override def show2Ev: Show[Int]

Show type class instance for the 2nd Show field.

Show type class instance for the 2nd Show field.

Attributes

Definition Classes
Inherited from:
ShowInt2
override def strT(obj: A): String

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Attributes

Definition Classes
Inherited from:
ShowCompound
override def strs(obj: A, way: ShowStyle, maxPlaces: Int, minPlaces: Int): StrArr

Produces the Strings to represent the values of the components of this N component Show.

Produces the Strings to represent the values of the components of this N component Show.

Attributes

Definition Classes
Inherited from:
Show2
override def syntaxDepth(obj: A): Int

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Attributes

Definition Classes
Inherited from:
ShowInt2
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
Show -> Any
Inherited from:
Show

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
def valuesFromStatements[ArrT <: Arr[A]](sts: RArr[Statement])(implicit arrBuild: BuilderArrMap[A, ArrT]): ArrT

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Attributes

Inherited from:
Unshow

Concrete fields

val fArg1: A => Int

Gets the 1st show field from the object. The Show fields do not necessarily correspond to the fields in memory.

Gets the 1st show field from the object. The Show fields do not necessarily correspond to the fields in memory.

Attributes

val fArg2: A => Int

Gets the 2nd show field from the object. The Show fields do not necessarily correspond to the fields in memory.

Gets the 2nd show field from the object. The Show fields do not necessarily correspond to the fields in memory.

Attributes

val name1: String

1st parameter name.

1st parameter name.

Attributes

val name2: String

2nd parameter name.

2nd parameter name.

Attributes

val newT: (Int, Int) => A

The function to construct an object of type R from its 2 components."

The function to construct an object of type R from its 2 components."

Attributes

override val opt1: Option[Int]

The optional default value for parameter 1.

The optional default value for parameter 1.

Attributes

override val opt2: Option[Int]

The optional default value for parameter 2.

The optional default value for parameter 2.

Attributes

Single identifiers for values.

Single identifiers for values.

Attributes

The type of the object to be persisted.

The type of the object to be persisted.

Attributes

Implicits

Inherited implicits

implicit override def unshow1Ev: Unshow[Int]

The Unshow type class instance for type A1.

The Unshow type class instance for type A1.

Attributes

Definition Classes
Inherited from:
UnshowInt2
implicit override def unshow2Ev: Unshow[Int]

The Unshow type class instance for type A2.

The Unshow type class instance for type A2.

Attributes

Definition Classes
Inherited from:
UnshowInt2