rds2cpp
C++ library for parsing RDS files
|
Language object, i.e., a function call. More...
#include <RObject.hpp>
Public Member Functions | |
SEXPType | type () const |
void | add_argument (std::string n, RObject *d, StringEncoding enc=StringEncoding::UTF8) |
void | add_argument (std::string n, std::unique_ptr< RObject > d, StringEncoding enc=StringEncoding::UTF8) |
void | add_argument (RObject *d) |
void | add_argument (std::unique_ptr< RObject > d) |
![]() |
Public Attributes | |
std::string | function_name |
StringEncoding | function_encoding = StringEncoding::UTF8 |
std::vector< std::unique_ptr< RObject > > | argument_values |
std::vector< std::string > | argument_names |
std::vector< unsigned char > | argument_has_name |
std::vector< StringEncoding > | argument_encodings |
Attributes | attributes |
Language object, i.e., a function call.
|
inline |
A convenient helper to add an unnamed argument to the end of the argument list.
d | Pointer to the argument value. This should not be owned by any other resource. |
|
inline |
A convenient helper to add a named argument to the end of the argument list.
n | Argument name. |
d | Unique pointer to the argument value. This should not be owned by any other resource. |
enc | Encoding of the argument name. |
|
inline |
A convenient helper to add a named argument to the end of the argument list.
n | Argument name. |
d | Unique pointer to the argument value. |
enc | Encoding of the argument name. |
|
inline |
A convenient helper to add an unnamed argument to the end of the argument list.
d | Pointer to the argument value. |
|
inlinevirtual |
Implements rds2cpp::RObject.
std::vector<StringEncoding> rds2cpp::LanguageObject::argument_encodings |
Encoding of the argument name, if the corresponding entry of argument_names
is true
. This should have the same length as argument_values
.
std::vector<unsigned char> rds2cpp::LanguageObject::argument_has_name |
The name of the argument, if the corresponding entry of argument_names
is true
. This should have the same length as argument_values
.
std::vector<std::string> rds2cpp::LanguageObject::argument_names |
Whether or not each argument is named. This should have the same length as argument_values
.
std::vector<std::unique_ptr<RObject> > rds2cpp::LanguageObject::argument_values |
Values of the arguments to the function, typically LanguageObject
or SymbolIndex
objects. These may also be AtomicVector
instances of length 1.
Attributes rds2cpp::LanguageObject::attributes |
Additional attributes.
StringEncoding rds2cpp::LanguageObject::function_encoding = StringEncoding::UTF8 |
Encoding for the function name.
std::string rds2cpp::LanguageObject::function_name |
Name of the function.