SCOMEnvironmentClass-class: Class for COM definitions involving a generator function,...

SCOMEnvironmentClass-classR Documentation

Class for COM definitions involving a generator function, typically using closures.

Description

This class is used to represent a COM definition that involves a generator function that is called to create unique instances when a COM object is needed of this class. The part of the class that involves an environment is typically that the generator function returns a list of functions that share a common environment and the variables within that environment. This gives the mutable state and this is a very natural way to think of COM objects in R.

This class should not be used directly at present. Instead, use SCOMIDispatch-class which is almost exactly the same but uses a more complete dispatch mechanism that is implemented in S (COMSIDispatchObject).

Objects from the Class

Using this class directly is stronly discouraged at present. Instead, use the SCOMIDispatch-class and its constructor function SCOMIDispatch.

Slots

generator:

Object of class "function". This is the generator function that is invoked each time a new COM object is requested for this class. It is expected to return a list of functions which are used as the methods. The names of the elements in the list are used as the names of the methods that are visible to clients. Any properties that are to be exported are identified by having an element named .properties in the list which contains a character vector giving the names of the accessible properties.

classId

Inherited from SCOMClass-class

guids

Inherited from SCOMClass-class

help

Inherited from SCOMClass-class

version

Inherited from SCOMClass-class

name

Inherited from SCOMClass-class

progId

Inherited from SCOMClass-class

Extends

Class "SCOMClass", directly.

Methods

createCOMObject

signature(def = "SCOMEnvironmentClass"): ...

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://www.omegahat.org/RDCOMServer

See Also

SCOMIDispatch

Examples

# Don't use this class directly. 
# 



omegahat/RDCOMServer documentation built on July 17, 2022, 7:25 p.m.