NamedFunction

com.phasmidsoftware.xmldoc.xml.NamedFunction
See theNamedFunction companion trait
object NamedFunction

The NamedFunction object provides utilities for working with instances of the NamedFunction trait, including methods to assert and combine named function instances.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def assertNamedNotNull[N : NamedFunction, T : ClassTag](caller: String): Unit

Ensures that a named function, along with its type constraints, is not null at runtime. This method serves to validate that specific types implementing the NamedFunction trait are properly instantiated and available for the calling context.

Ensures that a named function, along with its type constraints, is not null at runtime. This method serves to validate that specific types implementing the NamedFunction trait are properly instantiated and available for the calling context.

Type parameters

N

the type of the named function that must have evidence of NamedFunction.

T

the class type associated with the named function, requiring evidence of ClassTag.

Value parameters

caller

the name of the invoking method or context, used for diagnostic messaging.

Attributes

Returns

Unit, as this method performs a validation check without producing a result.

def combineNamed2[T0 : NamedFunction, T1 : NamedFunction]: String

Combines the names of two instances of NamedFunction into a single string.

Combines the names of two instances of NamedFunction into a single string.

This method retrieves the names of the two given types using the implicit evidence of their NamedFunction instances and concatenates them with a "+" separator.

Type parameters

T0

the type of the first NamedFunction.

T1

the type of the second NamedFunction.

Attributes

Returns

a string representation of the combined names of the two NamedFunctions, separated by "+".

def combineNamed3[T0 : NamedFunction, T1 : NamedFunction, T2 : NamedFunction]: String

Combines the names of three instances of NamedFunction for specified types T0, T1, and T2. The names are derived using the named method and concatenated using the combineNames3 method.

Combines the names of three instances of NamedFunction for specified types T0, T1, and T2. The names are derived using the named method and concatenated using the combineNames3 method.

Type parameters

T0

the type of the first NamedFunction.

T1

the type of the second NamedFunction.

T2

the type of the third NamedFunction.

Attributes

Returns

a concatenated string representation of the names of the three NamedFunction instances.

Combines the names of four types, each having an implicit NamedFunction instance.

Combines the names of four types, each having an implicit NamedFunction instance.

This method retrieves the NamedFunction instance for each type parameter (T0, T1, T2, T3), extracts their names via the name method, and concatenates them using a specific combination logic defined in the combineNames4 method.

Type parameters

T0

the first type parameter with an associated NamedFunction.

T1

the second type parameter with an associated NamedFunction.

T2

the third type parameter with an associated NamedFunction.

T3

the fourth type parameter with an associated NamedFunction.

Attributes

Returns

a String representing the combined names of the four types, formatted according to the logic in combineNames4.

Combines the names of five NamedFunction instances into a single string. The names are retrieved using the named method and then combined using the combineNames5 method.

Combines the names of five NamedFunction instances into a single string. The names are retrieved using the named method and then combined using the combineNames5 method.

Type parameters

T0

the type of the first NamedFunction.

T1

the type of the second NamedFunction.

T2

the type of the third NamedFunction.

T3

the type of the fourth NamedFunction.

T4

the type of the fifth NamedFunction.

Attributes

Returns

a string representing the combined names of the five NamedFunction instances.

Combines the names of six types, represented as instances of NamedFunction, into a single string. The result is constructed by combining the result of combineNamed5 for the first five types and the name of the sixth type.

Combines the names of six types, represented as instances of NamedFunction, into a single string. The result is constructed by combining the result of combineNamed5 for the first five types and the name of the sixth type.

Type parameters

T0

the first type parameter, required to have a NamedFunction evidence.

T1

the second type parameter, required to have a NamedFunction evidence.

T2

the third type parameter, required to have a NamedFunction evidence.

T3

the fourth type parameter, required to have a NamedFunction evidence.

T4

the fifth type parameter, required to have a NamedFunction evidence.

T5

the sixth type parameter, required to have a NamedFunction evidence.

Attributes

Returns

a string representing the concatenated names of the six types, separated by "+".

Combines the names of seven NamedFunction instances into a single string. The resulting string is constructed by concatenating the combined names of the first six NamedFunction instances using combineNamed6, followed by the name of the seventh NamedFunction, separated by a plus sign ("+").

Combines the names of seven NamedFunction instances into a single string. The resulting string is constructed by concatenating the combined names of the first six NamedFunction instances using combineNamed6, followed by the name of the seventh NamedFunction, separated by a plus sign ("+").

Type parameters

T0

the type of the first NamedFunction.

T1

the type of the second NamedFunction.

T2

the type of the third NamedFunction.

T3

the type of the fourth NamedFunction.

T4

the type of the fifth NamedFunction.

T5

the type of the sixth NamedFunction.

T6

the type of the seventh NamedFunction.

Attributes

Returns

a string composed of the combined names of the seven NamedFunction instances.

def combineNameds2[T0 : NamedFunction, T1](t1n: NamedFunction[T1]): String

Combines the names of two NamedFunction instances using the given type constraints.

Combines the names of two NamedFunction instances using the given type constraints.

Type parameters

T0

the type of the first NamedFunction, which must have an implicit NamedFunction instance.

T1

the type of the second NamedFunction.

Value parameters

t1n

the second NamedFunction of type T1, whose name will be combined with the name of the first function.

Attributes

Returns

a String representing the combined names of the two NamedFunction instances.

def combineNameds3[T0 : NamedFunction, T1 : NamedFunction, T2](t2n: NamedFunction[T2]): String

Combines the names of three types using the associated NamedFunction trait. Each type T0, T1, and T2 is expected to have an implicitly available instance of NamedFunction. The name for T2 is provided explicitly as an argument.

Combines the names of three types using the associated NamedFunction trait. Each type T0, T1, and T2 is expected to have an implicitly available instance of NamedFunction. The name for T2 is provided explicitly as an argument.

Type parameters

T0

the first type parameter with an implicit NamedFunction available

T1

the second type parameter with an implicit NamedFunction available

T2

the third type parameter whose associated NamedFunction is explicitly passed

Value parameters

t2n

the NamedFunction instance associated with the third type T2

Attributes

Returns

a string made by combining the names of T0, T1, and T2 as defined by their respective NamedFunction

def combineNameds4[T0 : NamedFunction, T1 : NamedFunction, T2 : NamedFunction, T3](t3n: NamedFunction[T3]): String

Combines the names of four NamedFunction instances into a single string representation.

Combines the names of four NamedFunction instances into a single string representation.

Type parameters

T0

the type parameter of the first NamedFunction.

T1

the type parameter of the second NamedFunction.

T2

the type parameter of the third NamedFunction.

T3

the type parameter of the fourth NamedFunction.

Value parameters

t3n

the fourth NamedFunction instance to include in the combination.

Attributes

Returns

a string representing the combined names of the four NamedFunction instances.

def combineNameds5[T0 : NamedFunction, T1 : NamedFunction, T2 : NamedFunction, T3 : NamedFunction, T4](t4n: NamedFunction[T4]): String

Combines the names of five types, where the first four types are inferred from context and the fifth type is provided explicitly via its NamedFunction instance.

Combines the names of five types, where the first four types are inferred from context and the fifth type is provided explicitly via its NamedFunction instance.

Type parameters

T0

the first type, which has an implicit NamedFunction in scope.

T1

the second type, which has an implicit NamedFunction in scope.

T2

the third type, which has an implicit NamedFunction in scope.

T3

the fourth type, which has an implicit NamedFunction in scope.

T4

the fifth type, represented by the NamedFunction passed explicitly.

Value parameters

t4n

an instance of NamedFunction representing the fifth type to combine.

Attributes

Returns

the combined name as a String.

def combineNameds6[T0 : NamedFunction, T1 : NamedFunction, T2 : NamedFunction, T3 : NamedFunction, T4 : NamedFunction, T5](t5n: NamedFunction[T5]): String

Combines the names of six NamedFunction instances, where the first five types are implicitly resolved, and the sixth is provided as a parameter.

Combines the names of six NamedFunction instances, where the first five types are implicitly resolved, and the sixth is provided as a parameter.

Type parameters

T0

the type of the first NamedFunction instance.

T1

the type of the second NamedFunction instance.

T2

the type of the third NamedFunction instance.

T3

the type of the fourth NamedFunction instance.

T4

the type of the fifth NamedFunction instance.

T5

the type of the sixth NamedFunction instance.

Value parameters

t5n

the sixth NamedFunction instance whose name is combined with the previous five.

Attributes

Returns

a string representing the combined names of the six NamedFunction instances.

def combineNames2[T0, T1](t0n: NamedFunction[T0], t1n: NamedFunction[T1]): String

Combines the names of two NamedFunction instances into a single string.

Combines the names of two NamedFunction instances into a single string.

Value parameters

t0n

the first NamedFunction instance

t1n

the second NamedFunction instance

Attributes

Returns

a string representing the combined names of the two NamedFunction instances, separated by a "+" symbol

def combineNames3[T0, T1, T2](t0n: NamedFunction[T0], t1n: NamedFunction[T1], t2n: NamedFunction[T2]): String

Combines the names of three given NamedFunction instances into a single string.

Combines the names of three given NamedFunction instances into a single string.

Value parameters

t0n

the first NamedFunction instance whose name is to be combined.

t1n

the second NamedFunction instance whose name is to be combined.

t2n

the third NamedFunction instance whose name is to be combined.

Attributes

Returns

a string representing the combined names of the three NamedFunction instances.

def combineNames4[T0, T1, T2, T3](t0n: NamedFunction[T0], t1n: NamedFunction[T1], t2n: NamedFunction[T2], t3n: NamedFunction[T3]): String

Combines the names of four NamedFunction instances into a single string. The result is constructed by combining the names of the first three NamedFunction instances using combineNames3, followed by appending the name of the fourth NamedFunction instance, separated by a "+".

Combines the names of four NamedFunction instances into a single string. The result is constructed by combining the names of the first three NamedFunction instances using combineNames3, followed by appending the name of the fourth NamedFunction instance, separated by a "+".

Value parameters

t0n

the first NamedFunction whose name will be included in the combined result

t1n

the second NamedFunction whose name will be included in the combined result

t2n

the third NamedFunction whose name will be included in the combined result

t3n

the fourth NamedFunction whose name will be appended in the combined result

Attributes

Returns

a string representing the combined names of the four NamedFunction instances

def combineNames5[T0, T1, T2, T3, T4](t0n: NamedFunction[T0], t1n: NamedFunction[T1], t2n: NamedFunction[T2], t3n: NamedFunction[T3], t4n: NamedFunction[T4]): String

Combines the names of five NamedFunction instances into a single string.

Combines the names of five NamedFunction instances into a single string.

Value parameters

t0n

the first NamedFunction instance.

t1n

the second NamedFunction instance.

t2n

the third NamedFunction instance.

t3n

the fourth NamedFunction instance.

t4n

the fifth NamedFunction instance.

Attributes

Returns

a string representation of the combined names of the five instances.

def combineNames6[T0, T1, T2, T3, T4, T5](t0n: NamedFunction[T0], t1n: NamedFunction[T1], t2n: NamedFunction[T2], t3n: NamedFunction[T3], t4n: NamedFunction[T4], t5n: NamedFunction[T5]): String

Combines the names of six NamedFunction instances into a single string. The resulting string is formed by concatenating the names of the first five instances using the combineNames5 method and appending the name of the sixth instance, separated by a "+" symbol.

Combines the names of six NamedFunction instances into a single string. The resulting string is formed by concatenating the names of the first five instances using the combineNames5 method and appending the name of the sixth instance, separated by a "+" symbol.

Value parameters

t0n

the first NamedFunction instance.

t1n

the second NamedFunction instance.

t2n

the third NamedFunction instance.

t3n

the fourth NamedFunction instance.

t4n

the fifth NamedFunction instance.

t5n

the sixth NamedFunction instance.

Attributes

Returns

a string representing the combined names of the six NamedFunction instances.

def name[P : NamedFunction]: String

Retrieves the name of the parameterized entity P by applying a NamedFunction to it. If the name is not available, returns the string "uninitialized".

Retrieves the name of the parameterized entity P by applying a NamedFunction to it. If the name is not available, returns the string "uninitialized".

Attributes

Returns

A string representing the name of the parameterized entity P or "uninitialized" if the name is not set.

Provides the implicit NamedFunction instance for the specified type P.

Provides the implicit NamedFunction instance for the specified type P.

This method uses the context bound P: NamedFunction to ensure that an implicit NamedFunction instance for the type P is available in the current scope. If such an instance exists, it returns it using the implicitly method.

Type parameters

P

the type for which the NamedFunction instance is required.

Attributes

Returns

an instance of NamedFunction[P] from the implicit scope.