|
Rcpp Version 0.10.3
|
#include <string_proxy.h>
Public Types | |
| typedef ::Rcpp::Vector< RTYPE > | VECTOR |
| typedef const char * | iterator |
| typedef const char & | reference |
Public Member Functions | |
| string_proxy () | |
| string_proxy (VECTOR &v, int index_) | |
| string_proxy (const string_proxy &other) | |
| string_proxy & | operator= (const string_proxy &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 (int n) |
| SEXP | get () const |
| template<typename T > | |
| void | set (const T &x) |
| void | set (SEXP x) |
| iterator | begin () const |
| iterator | end () const |
| int | size () const |
| reference | operator[] (int 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) |
| template<int RTYPE> | |
| string_proxy< RTYPE > & | operator= (const String &s) |
| template<typename T > | |
| string_proxy< RTYPE > & | operator+= (const T &rhs) |
Public Attributes | |
| VECTOR * | parent |
| int | 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 28 of file string_proxy.h.
| typedef const char* internal::string_proxy< RTYPE >::iterator |
Definition at line 32 of file string_proxy.h.
| typedef const char& internal::string_proxy< RTYPE >::reference |
Definition at line 33 of file string_proxy.h.
| typedef ::Rcpp::Vector<RTYPE> internal::string_proxy< RTYPE >::VECTOR |
Definition at line 31 of file string_proxy.h.
|
inline |
Definition at line 35 of file string_proxy.h.
|
inline |
Creates a proxy
| v | reference to the associated character vector |
| index | index |
Definition at line 43 of file string_proxy.h.
References RCPP_DEBUG_2.
|
inline |
Definition at line 48 of file string_proxy.h.
|
inline |
Definition at line 173 of file string_proxy.h.
References internal::string_proxy< RTYPE >::begin(), internal::string_proxy< RTYPE >::end(), and internal::string_proxy< RTYPE >::transform().

|
inline |
Definition at line 178 of file string_proxy.h.
References internal::string_proxy< RTYPE >::begin(), and internal::string_proxy< RTYPE >::end().

|
inline |
Definition at line 160 of file string_proxy.h.
References internal::string_proxy< RTYPE >::index, and internal::string_proxy< RTYPE >::parent.
Referenced by internal::string_proxy< RTYPE >::apply(), internal::string_proxy< RTYPE >::end(), internal::string_proxy< RTYPE >::operator==(), internal::operator>(), internal::operator>=(), internal::string_proxy< RTYPE >::operator[](), internal::string_proxy< RTYPE >::size(), and internal::string_proxy< RTYPE >::transform().
|
inline |
Definition at line 161 of file string_proxy.h.
References internal::string_proxy< RTYPE >::begin(), and internal::string_proxy< RTYPE >::size().
Referenced by internal::string_proxy< RTYPE >::apply().

|
inline |
Definition at line 149 of file string_proxy.h.
References internal::string_proxy< RTYPE >::index, and internal::string_proxy< RTYPE >::parent.
Referenced by internal::string_proxy< RTYPE >::operator=(), and Rcpp::String::operator=().
|
inline |
Definition at line 94 of file string_proxy.h.
References internal::string_proxy< RTYPE >::index, and internal::string_proxy< RTYPE >::parent.
|
inline |
Definition at line 147 of file string_proxy.h.
References internal::string_proxy< RTYPE >::index, and n.
|
inline |
rhs use. Retrieves the current value of the element this proxy refers to and convert it to a C string
Definition at line 119 of file string_proxy.h.
|
inline |
rhs use. Retrieves the current value of the element this proxy refers to.
Definition at line 110 of file string_proxy.h.
| string_proxy& internal::string_proxy< RTYPE >::operator+= | ( | const T & | rhs | ) |
lhs use. Adds the content of the rhs proxy to the element this proxy refers to.
| string_proxy<RTYPE>& internal::string_proxy< RTYPE >::operator+= | ( | const T & | rhs | ) |
|
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 58 of file string_proxy.h.
References internal::string_proxy< RTYPE >::get().

| string_proxy& internal::string_proxy< RTYPE >::operator= | ( | const String & | s | ) |
|
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 72 of file string_proxy.h.
|
inline |
Definition at line 77 of file string_proxy.h.
|
inline |
Definition at line 82 of file string_proxy.h.
|
inline |
Definition at line 88 of file string_proxy.h.
| string_proxy<RTYPE>& internal::string_proxy< RTYPE >::operator= | ( | const String & | s | ) |
|
inline |
Definition at line 182 of file string_proxy.h.
References internal::string_proxy< RTYPE >::begin().

|
inline |
Definition at line 163 of file string_proxy.h.
References internal::string_proxy< RTYPE >::begin(), and n.

|
inline |
Definition at line 153 of file string_proxy.h.
References x.
|
inline |
Definition at line 156 of file string_proxy.h.
References internal::string_proxy< RTYPE >::index, internal::string_proxy< RTYPE >::parent, and x.
|
inline |
Definition at line 162 of file string_proxy.h.
References internal::string_proxy< RTYPE >::begin().
Referenced by internal::string_proxy< RTYPE >::end().

|
inline |
Definition at line 138 of file string_proxy.h.
References internal::string_proxy< RTYPE >::index, internal::string_proxy< RTYPE >::parent, and PROTECT().

|
inline |
Definition at line 166 of file string_proxy.h.
References internal::string_proxy< RTYPE >::begin(), and internal::string_proxy< RTYPE >::buffer.
Referenced by internal::string_proxy< RTYPE >::apply().

|
friend |
|
friend |
Prints the element this proxy refers to to an output stream
|
staticprivate |
Definition at line 187 of file string_proxy.h.
Referenced by internal::string_proxy< RTYPE >::transform().
| int internal::string_proxy< RTYPE >::index |
Definition at line 146 of file string_proxy.h.
Referenced by internal::string_proxy< RTYPE >::begin(), internal::string_proxy< RTYPE >::get(), internal::string_proxy< RTYPE >::import(), internal::string_proxy< RTYPE >::move(), internal::string_proxy< RTYPE >::set(), and internal::string_proxy< RTYPE >::swap().
| VECTOR* internal::string_proxy< RTYPE >::parent |
Definition at line 145 of file string_proxy.h.
Referenced by internal::string_proxy< RTYPE >::begin(), internal::string_proxy< RTYPE >::get(), internal::string_proxy< RTYPE >::import(), internal::string_proxy< RTYPE >::set(), and internal::string_proxy< RTYPE >::swap().