|
rds2cpp
Read and write RDS/RDA files in C++
|
Reference to an environment. More...
#include <RObject.hpp>


Public Member Functions | |
| EnvironmentIndex ()=default | |
| EnvironmentIndex (SEXPType e) | |
| EnvironmentIndex (std::size_t i) | |
| SEXPType | type () const |
Public Member Functions inherited from rds2cpp::RObject | |
Public Attributes | |
| std::size_t | index = -1 |
| SEXPType | env_type = SEXPType::GLOBALENV_ |
Reference to an environment.
|
default |
Default constructor.
|
inline |
| e | Type of the environment, typically one of the special environments (global, empty or base) rather than SEXPType::ENV. |
|
inline |
Create an EnvironmentIndex that refers to a non-global environment, i.e., is of type SEXPType::ENV.
| i | Value of the environment index. |
|
inlinevirtual |
Type of environment. Most environments will be ENV but special environments can be constructed like SEXPType::GLOBALENV_.
Implements rds2cpp::RObject.
| SEXPType rds2cpp::EnvironmentIndex::env_type = SEXPType::GLOBALENV_ |
Type of the environment, as returned by type().
| std::size_t rds2cpp::EnvironmentIndex::index = -1 |
Index of the RdsFile::external_pointers or RdaFile::external_pointers vector, containing information about this environment. Only used if type() returns ENV.