CXXR (C++ R)
|
Class CXXR::StringVector and associated C interface. More...
#include "CXXR/String.h"
#include <iostream>
#include "CXXR/FixedVector.hpp"
#include "CXXR/SEXP_downcast.hpp"
Go to the source code of this file.
Namespaces | |
namespace | CXXR |
Namespace for the CXXR project. | |
namespace | CXXR::ElementTraits |
Namespace encapsulating traits of R vector element types. |
Typedefs | |
typedef FixedVector< RHandle < String >, STRSXP > | CXXR::StringVector |
Vector of strings. |
Functions | |
StringVector * | CXXR::asStringVector (const std::string &str, cetype_t encoding=CE_NATIVE) |
Create a StringVector containing a single std::string. | |
void | CXXR::strdump (std::ostream &os, const StringVector &sv, std::size_t margin=0) |
(For debugging.) | |
Rboolean | Rf_isString (SEXP s) |
void | SET_STRING_ELT (SEXP x, int i, SEXP v) |
Set element of CXXR::StringVector. | |
SEXP | STRING_ELT (SEXP x, int i) |
Examine element of a CXXR::StringVector. |
Class CXXR::StringVector and associated C interface.
(StringVector implements STRSXP.)
|
inline |
s | Pointer to an RObject. |
Set element of CXXR::StringVector.
x | Non-null pointer to a CXXR::StringVector . |
i | Index of the required element. There is no bounds checking. |
v | Non-null pointer to CXXR::String representing the new value. |
Examine element of a CXXR::StringVector.
x | Non-null pointer to a CXXR::StringVector. An error is raised if x is not a pointer to a CXXR::StringVector. |
i | Index of the required element. There is no bounds checking. |