An R environment.
More...
#include <Environment.hpp>
◆ add() [1/2]
A convenient helper to add a variable.
- Parameters
-
n | Name of the variable. |
v | Pointer to the variable value. This should not be owned by any other object. |
enc | Encoding of the variable name. |
◆ add() [2/2]
void rds2cpp::Environment::add |
( |
std::string | n, |
|
|
std::unique_ptr< RObject > | v, |
|
|
StringEncoding | enc = StringEncoding::UTF8 ) |
|
inline |
A convenient helper to add a variable.
- Parameters
-
n | Name of the variable. |
v | Unique pointer to the variable value. |
enc | Encoding of the variable name. |
◆ attributes
◆ hashed
bool rds2cpp::Environment::hashed = false |
Whether the environment was hashed.
◆ locked
bool rds2cpp::Environment::locked = false |
Whether the environment was locked.
◆ parent
size_t rds2cpp::Environment::parent = -1 |
Index of the parent environment. This should only be used if parent_type
is SEXPType::ENV
.
◆ parent_type
SEXPType rds2cpp::Environment::parent_type = SEXPType::GLOBALENV_ |
Type of the parent environment. This is usually one of SEXPType::ENV
, SEXPType::GLOBALENV_
, SEXPType::BASEENV_
or SEXPType::EMPTYENV_
.
◆ variable_encodings
Encodings of the variable names in variable_names
.
◆ variable_names
std::vector<std::string> rds2cpp::Environment::variable_names |
Names of the variables inside this environment.
◆ variable_values
std::vector<std::unique_ptr<RObject> > rds2cpp::Environment::variable_values |
Values of the variables in this environment.
The documentation for this struct was generated from the following file: