|
Rcpp Version 1.1.2
|
#include <string_proxy.h>

Public Types | |
| typedef ::Rcpp::Vector< RTYPE, StoragePolicy > | VECTOR |
| typedef const char * | iterator |
| typedef const char & | reference |
Public Member Functions | |
| string_proxy () | |
| string_proxy (VECTOR &v, R_xlen_t index_) | |
| string_proxy (const string_proxy &other) | |
| string_proxy & | operator= (const string_proxy< RTYPE, StoragePolicy > &other) |
| template<template< class > class StoragePolicy2> | |
| string_proxy & | operator= (const string_proxy< RTYPE, StoragePolicy2 > &other) |
| template<template< class > class StoragePolicy2> | |
| string_proxy & | operator= (const const_string_proxy< RTYPE, StoragePolicy2 > &other) |
| string_proxy & | operator= (const String &s) |
| template<typename T> | |
| string_proxy & | operator= (const std::basic_string< T > &rhs) |
| string_proxy & | operator= (const char *rhs) |
| string_proxy & | operator= (const wchar_t *rhs) |
| string_proxy & | operator= (SEXP rhs) |
| void | import (const string_proxy &other) |
| template<typename T> | |
| string_proxy & | operator+= (const T &rhs) |
| operator SEXP () const | |
| operator char * () const | |
| void | swap (string_proxy &other) |
| void | move (R_xlen_t n) |
| SEXP | get () const |
| template<typename T> | |
| void | set (const T &x) |
| void | set (SEXP x) |
| iterator | begin () const |
| iterator | end () const |
| R_xlen_t | size () const |
| bool | empty () const |
| reference | operator[] (R_xlen_t n) |
| template<typename UnaryOperator> | |
| void | transform (UnaryOperator op) |
| template<typename OutputIterator, typename UnaryOperator> | |
| void | apply (OutputIterator target, UnaryOperator op) |
| template<typename UnaryOperator> | |
| void | apply (UnaryOperator op) |
| bool | operator== (const char *other) const |
| bool | operator!= (const char *other) const |
| template<template< class > class SP> | |
| bool | operator== (const string_proxy< STRSXP, SP > &other) const |
| template<template< class > class SP> | |
| bool | operator!= (const string_proxy< STRSXP, SP > &other) const |
| bool | operator== (SEXP other) const |
| bool | operator!= (SEXP other) const |
| template<typename T> | |
| string_proxy< RTYPE, StoragePolicy > & | operator+= (const T &rhs) |
| template<template< class > class StoragePolicy2> | |
| string_proxy< RTYPE, StoragePolicy1 > & | operator= (const const_string_proxy< RTYPE, StoragePolicy2 > &other) |
Public Attributes | |
| VECTOR * | parent |
| R_xlen_t | index |
Static Private Attributes | |
| static std::string | buffer |
Friends | |
| template<int RT> | |
| std::ostream & | operator<< (std::ostream &os, const string_proxy< RT > &proxy) |
| template<int RT> | |
| std::string | operator+ (const std::string &x, const string_proxy< RT > &proxy) |
Definition at line 29 of file string_proxy.h.
| typedef const char* Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::iterator |
Definition at line 33 of file string_proxy.h.
| typedef const char& Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::reference |
Definition at line 34 of file string_proxy.h.
| typedef ::Rcpp::Vector<RTYPE, StoragePolicy> Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::VECTOR |
Definition at line 32 of file string_proxy.h.
|
inline |
Definition at line 36 of file string_proxy.h.
Referenced by operator=().
|
inline |
Creates a proxy
| v | reference to the associated character vector |
| index | index |
Definition at line 44 of file string_proxy.h.
|
inline |
Definition at line 46 of file string_proxy.h.
|
inline |
Definition at line 181 of file string_proxy.h.
|
inline |
Definition at line 186 of file string_proxy.h.
|
inline |
Definition at line 167 of file string_proxy.h.
Referenced by Rcpp::internal::string_proxy< STRSXP >::apply(), Rcpp::internal::string_proxy< STRSXP >::apply(), Rcpp::internal::string_proxy< STRSXP >::empty(), Rcpp::internal::string_proxy< STRSXP >::end(), Rcpp::internal::string_proxy< STRSXP >::operator!=(), Rcpp::internal::string_proxy< STRSXP >::operator!=(), Rcpp::internal::operator<(), Rcpp::internal::operator<=(), Rcpp::internal::string_proxy< STRSXP >::operator==(), Rcpp::internal::string_proxy< STRSXP >::operator==(), Rcpp::internal::operator>(), Rcpp::internal::operator>=(), Rcpp::internal::string_proxy< STRSXP >::operator[](), Rcpp::internal::string_proxy< STRSXP >::size(), and Rcpp::internal::string_proxy< STRSXP >::transform().
|
inline |
Definition at line 170 of file string_proxy.h.
|
inline |
Definition at line 168 of file string_proxy.h.
Referenced by Rcpp::internal::string_proxy< STRSXP >::apply(), and Rcpp::internal::string_proxy< STRSXP >::apply().
|
inline |
Definition at line 156 of file string_proxy.h.
Referenced by Rcpp::internal::string_proxy< STRSXP >::operator char *(), Rcpp::internal::string_proxy< STRSXP >::operator SEXP(), Rcpp::internal::string_proxy< STRSXP >::operator!=(), Rcpp::String::operator!=(), Rcpp::internal::string_proxy< STRSXP >::operator=(), Rcpp::internal::string_proxy< STRSXP >::operator=(), Rcpp::String::operator=(), Rcpp::internal::string_proxy< STRSXP >::operator==(), Rcpp::Na_Proxy::operator==, Rcpp::Na_Proxy::operator==, and Rcpp::String::operator==().
|
inline |
Definition at line 102 of file string_proxy.h.
|
inline |
Definition at line 154 of file string_proxy.h.
|
inline |
rhs use. Retrieves the current value of the element this proxy refers to and convert it to a C string
Definition at line 127 of file string_proxy.h.
|
inline |
rhs use. Retrieves the current value of the element this proxy refers to.
Definition at line 118 of file string_proxy.h.
|
inline |
Definition at line 193 of file string_proxy.h.
|
inline |
Definition at line 203 of file string_proxy.h.
|
inline |
Definition at line 211 of file string_proxy.h.
| string_proxy< RTYPE, StoragePolicy > & Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator+= | ( | const T & | rhs | ) |
| string_proxy & Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator+= | ( | const T & | rhs | ) |
lhs use. Adds the content of the rhs proxy to the element this proxy refers to.
|
inline |
Definition at line 85 of file string_proxy.h.
| string_proxy< RTYPE, StoragePolicy1 > & Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator= | ( | const const_string_proxy< RTYPE, StoragePolicy2 > & | other | ) |
Definition at line 174 of file const_string_proxy.h.
| string_proxy & Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator= | ( | const const_string_proxy< RTYPE, StoragePolicy2 > & | other | ) |
|
inline |
lhs use. Assigns the value of the referred element of the character vector
| rhs | new content for the element referred by this proxy |
Definition at line 80 of file string_proxy.h.
| string_proxy< RTYPE, StoragePolicy > & Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator= | ( | const String & | s | ) |
Definition at line 680 of file String.h.
References Rcpp::String::get_sexp(), set(), and string_proxy().

|
inline |
lhs use. Assign the value of the referred element to the current content of the element referred by the rhs proxy
| rhs | another proxy, possibly from another vector |
Definition at line 57 of file string_proxy.h.
|
inline |
Definition at line 63 of file string_proxy.h.
|
inline |
Definition at line 90 of file string_proxy.h.
|
inline |
Definition at line 96 of file string_proxy.h.
|
inline |
Definition at line 190 of file string_proxy.h.
|
inline |
Definition at line 198 of file string_proxy.h.
|
inline |
Definition at line 207 of file string_proxy.h.
|
inline |
Definition at line 171 of file string_proxy.h.
|
inline |
Definition at line 160 of file string_proxy.h.
Referenced by operator=(), Rcpp::internal::string_proxy< STRSXP >::operator=(), Rcpp::internal::string_proxy< STRSXP >::operator=(), Rcpp::internal::string_proxy< STRSXP >::operator=(), Rcpp::internal::string_proxy< STRSXP >::operator=(), Rcpp::internal::string_proxy< STRSXP >::operator=(), Rcpp::internal::string_proxy< STRSXP >::operator=(), Rcpp::internal::string_proxy< STRSXP >::set(), and Rcpp::internal::string_proxy< STRSXP >::transform().
|
inline |
Definition at line 163 of file string_proxy.h.
|
inline |
Definition at line 169 of file string_proxy.h.
Referenced by Rcpp::internal::string_proxy< STRSXP >::end().
|
inline |
Definition at line 146 of file string_proxy.h.
|
inline |
Definition at line 174 of file string_proxy.h.
|
friend |
|
friend |
Prints the element this proxy refers to to an output stream
|
staticprivate |
Definition at line 216 of file string_proxy.h.
| R_xlen_t Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::index |
Definition at line 153 of file string_proxy.h.
Referenced by Rcpp::internal::string_proxy< STRSXP >::swap().
| VECTOR* Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::parent |
Definition at line 152 of file string_proxy.h.
Referenced by Rcpp::internal::string_proxy< STRSXP >::swap().