Rcpp Version 1.0.9
|
#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.
|
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.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin(), and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::end().
|
inline |
Definition at line 186 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin(), and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::end().
|
inline |
Definition at line 167 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::index, and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::parent.
Referenced by Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::apply(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::empty(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::end(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator!=(), Rcpp::internal::operator<(), Rcpp::internal::operator<=(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator==(), Rcpp::internal::operator>(), Rcpp::internal::operator>=(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator[](), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::size(), and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::transform().
|
inline |
Definition at line 170 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 168 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin(), and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::size().
Referenced by Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::apply().
|
inline |
Definition at line 156 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::index, and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::parent.
Referenced by Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator char *(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator SEXP(), Rcpp::String::operator!=(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator!=(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator=(), Rcpp::String::operator=(), Rcpp::String::operator==(), and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator==().
|
inline |
Definition at line 102 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::index, and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::parent.
|
inline |
Definition at line 154 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::index.
|
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.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::get().
|
inline |
rhs use. Retrieves the current value of the element this proxy refers to.
Definition at line 118 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::get().
|
inline |
Definition at line 193 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 203 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 211 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::get().
string_proxy<RTYPE, StoragePolicy>& Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator+= | ( | const T & | rhs | ) |
Definition at line 700 of file String.h.
References Rcpp::get().
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.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::set().
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.
References Rcpp::internal::const_string_proxy< RTYPE, StoragePolicy >::get().
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.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::set().
string_proxy< RTYPE, StoragePolicy > & Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator= | ( | const String & | s | ) |
Definition at line 682 of file String.h.
References Rcpp::String::get_sexp().
|
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.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::get(), and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::set().
|
inline |
Definition at line 63 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::get(), and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::set().
|
inline |
Definition at line 90 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::set().
|
inline |
Definition at line 96 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::set().
|
inline |
Definition at line 190 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 198 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 207 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::get().
|
inline |
Definition at line 171 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin().
|
inline |
Definition at line 160 of file string_proxy.h.
Referenced by Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::operator=(), and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::transform().
|
inline |
Definition at line 163 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::index, and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::parent.
|
inline |
Definition at line 169 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin().
Referenced by Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::end().
|
inline |
Definition at line 146 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::index, and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::parent.
|
inline |
Definition at line 174 of file string_proxy.h.
References Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::buffer, and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::set().
|
friend |
|
friend |
Prints the element this proxy refers to to an output stream
|
staticprivate |
Definition at line 216 of file string_proxy.h.
Referenced by Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::transform().
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< RTYPE, StoragePolicy >::begin(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::get(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::import(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::move(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::set(), and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::swap().
VECTOR* Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::parent |
Definition at line 152 of file string_proxy.h.
Referenced by Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::begin(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::get(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::import(), Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::set(), and Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::swap().