nuget server logo nuget api documents
↑

API Docs / REnv / generic

generic

Full name SMRUCC.Rsharp.Runtime.Internal.generic Assembly REnv Members 8

Typped generic function invoke. the generic function is overloads by the parameter type

00 Remarks

supports call primitive functions:

  1. plot(...)
  2. as.list(...)
  3. summary(...)

01 Syntax

SMRUCC.Rsharp.Runtime.Internal.generic

02 Methods

NameOverloadsSummary
get 1
add 1 overloads name = ( x As Object, args As ApiArgumentHelpers.list()), env As Environment ) As Object
exists 2 check target generic function is exists in the runtime index or not
parseGeneric 1 genericName.<type
invokeGeneric 2
getGenericCallable 1

03 Members

method get #
get(String, Type)
Parameters
NameTypeDescription
nameString

-

typeType

-

Returns

this function returns nothing if the target function symbol/type is not exists in the generic function pool.

method add #
add(String, Type, GenericFunction)

overloads name = ( x As Object, args As ApiArgumentHelpers.list(), env As Environment ) As Object

Parameters
NameTypeDescription
nameString

-

xType

-

[overloads]GenericFunction

-

method exists #
exists(Object, String, Type, Environment, GenericFunction)

check target generic function is exists in the runtime index or not

Parameters
NameTypeDescription
xObject

-

funcNameString

-

typeType

-

envEnvironment

-

callableGenericFunction

-

method parseGeneric #
parseGeneric(String, Environment)

genericName.<type>

Parameters
NameTypeDescription
funcNameString

-

envEnvironment

-

method invokeGeneric overload 2 #
invokeGeneric(list, Object, Environment, String)

invoke a generic R# function

The function name is comes from the compiler options CallerMemberNameAttribute

Parameters
NameTypeDescription
argslist

-

xObject

-

envEnvironment

-

funcNameString

-

method getGenericCallable #
getGenericCallable(Object, Type, String, Environment, Boolean)
Parameters
NameTypeDescription
xObject

this function will auto cast the data type of this input parameter x

typeType

-

funcNameString

-

envEnvironment

-

suppressBoolean

this function may be call by the function for check function existsed or not, no needs to throw the error, so set suppress to TRUE could avoid generates the error message and stop the program.

method exists overload 2 #
exists(String)
method invokeGeneric #
invokeGeneric(list, Object, Environment, String, Type)