SEXPWrap
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get |
SEXPSize: * Return sizeof(SEXP) in byte. |
|
| public get |
names: * |
|
| public set |
|
|
| public |
sexp: * |
|
Method Summary
| Public Methods | ||
| public |
asChar(): * |
|
| public |
dataptr(): * |
|
| public |
getAttribute(attrname: *): * get attr of this variable. |
|
| public |
getType(): * |
|
| public |
|
|
| public |
isComplex(): * |
|
| public |
isExpression(): * |
|
| public |
isFactor(): * |
|
| public |
isFrame(): * |
|
| public |
isFunction(): * |
|
| public |
isInteger(): * |
|
| public |
isList(): * Return true if this SEXP is List. |
|
| public |
isLogical(): * |
|
| public |
isNull(): * Return true if this SEXP is null. |
|
| public |
isReal(): * |
|
| public |
isSymbol(): * |
|
| public |
isValidString(): * |
|
| public |
isVector(): * Return true if this SEXP is Vector. |
|
| public |
length(): * Return the length of vector. |
|
| public |
preserve() Preserve this SEXP. |
|
| public |
protect() Protect this SEXP |
|
| public |
release() Release preserved SEXP. |
|
| public |
setAttribute(attrname: *, newattr: *) set attr of this variable. |
|
| public |
|
|
| public |
|
|
| Private Methods | ||
| private |
__initializeWithValue(value: *): * Initialize this instance with specified value. |
|
| private |
_getAttribute_raw(attrname: *): * get attr SEXP of this variable. |
|
| private |
_getValue_scalar(sexp: *): string |
|
Static Public Methods
Public Constructors
public constructor() source
Public Methods
public getAttribute(attrname: *): * source
get attr of this variable.
Params:
| Name | Type | Attribute | Description |
| attrname | * |
Return:
| * |
public isVector(): * source
Return true if this SEXP is Vector. Please note single scalar value in R is vector.
Return:
| * |
public release() source
Release preserved SEXP. protect()ed SEXP should be released with unprotect()
public setAttribute(attrname: *, newattr: *) source
set attr of this variable.
Params:
| Name | Type | Attribute | Description |
| attrname | * | ||
| newattr | * |
public unprotect(depth: number) source
Params:
| Name | Type | Attribute | Description |
| depth | number |
|
Private Methods
private __initializeWithValue(value: *): * source
Initialize this instance with specified value.
Params:
| Name | Type | Attribute | Description |
| value | * |
Return:
| * |
private _getAttribute_raw(attrname: *): * source
get attr SEXP of this variable.
Params:
| Name | Type | Attribute | Description |
| attrname | * |
Return:
| * |
